-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (37 loc) · 1.11 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from setuptools import setup, Extension
import sys
extra_objects = []
libraries = ['stdc++']
library_dirs = []
# Hacky but are there really any docs for this?
if '--static' in sys.argv:
extra_objects = ['external/abieos/build/libabieos_static.a']
sys.argv.remove('--static')
else:
libraries.append('abieos')
library_dirs.append('external/abieos/build')
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='abieos-python',
description='Python bindings for abieos library.',
long_description=long_description,
long_description_content_type='text/markdown',
author='Maciej Janiszewski',
author_email='[email protected]',
url="https://github.com/ulamlabs/abieos-python",
version='1.0.0',
packages=['abieos'],
include_package_data=True,
license='MIT License',
ext_modules=[
Extension(
'abieos._private',
include_dirs=['external/abieos/src'],
sources=['abieos/_private.c'],
extra_objects=extra_objects,
library_dirs=library_dirs,
libraries=libraries
)
]
)