forked from syscall7/python-bfd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (27 loc) · 1.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from setuptools import setup, Extension
from setuptools.command.install import install
import subprocess
import sys
bfd = Extension('bfd',
define_macros = [('MAJOR_VERSION', '1'),
('MINOR_VERSION', '0'),
# get around automake
('PACKAGE', 1),
('PACKAGE_VERSION', 1)],
libraries = ['bfd', 'opcodes', 'z'],
extra_compile_args=['-fpermissive'],
language="c++", # generate and compile C++ code
sources = ['bfd/bfd.pyx'])
setup (name = 'PythonBFD',
version = '1.0',
description = 'This is the BFD package',
author = 'Anthony DeRosa',
author_email = 'Anthony.DeRosa@syscall7.com',
url = '',
long_description = '''Access to BFD library from Python''',
ext_modules = [bfd],
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
'setuptools>=18.0',
'Cython'
])