-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (45 loc) · 1.31 KB
/
setup.py
File metadata and controls
51 lines (45 loc) · 1.31 KB
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
44
45
46
47
48
49
50
51
import os
#from distutils.core import setup, Extension
from setuptools import setup, Extension
compile_args = ["-Wno-unused-variable"]
#link_args = [""]
def extension(package_name):
if package_name == 'fastpath':
sources = ['src/fastpath-py.c']
else:
sources = ['src/fastpathz-py.c', 'src/mini-gmp.c']
ext = Extension(package_name,
language='c',
extra_compile_args=compile_args,
#extra_link_args=link_args,
include_dirs=[
'.',
'...',
os.path.join(os.getcwd(), 'include'),
],
library_dirs = [os.getcwd(),],
sources = sources)
return ext
with open("README.md", "r") as fh:
long_desc = fh.read()
def get_version():
with open("VERSION", 'r') as f:
v = f.readline().strip()
return v
setup (
name = 'fastpath',
version = get_version(),
author = "Katelyn McNair",
author_email = "deprekate@gmail.com",
description = 'A package for finding the best path through a network graph',
long_description = long_desc,
long_description_content_type="text/markdown",
url = "https://github.com/deprekate/fastpath",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
python_requires='>3.5.2',
ext_modules = [extension('fastpath'), extension('fastpathz')]
)