-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
39 lines (36 loc) · 1.33 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
import platform
from setuptools import setup, Extension
import numpy
CXX_ARGS = {
"Darwin": ["-std=c++11", "-march=native", "-ftree-vectorize"],
"Linux": ["-fopenmp", "-std=c++11", "-march=native", "-ftree-vectorize"],
"Windows": ["/openmp", "/std:c++latest", "/arch:AVX2"]
}
setup(
name="fastlapjv",
description="Linear sum assignment problem solver using Jonker-Volgenant "
"algorithm.",
version="1.0.0",
license="MIT",
author="Thuvis",
author_email="[email protected]",
url="https://github.com/thu-vis/fast-lapjv",
download_url="https://github.com/thu-vis/fast-lapjv",
ext_modules=[Extension("fastlapjv",
sources=["python.cc"],
extra_compile_args=CXX_ARGS[platform.system()],
include_dirs=[numpy.get_include()])],
install_requires=["numpy"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Information Analysis",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
]
)
# python3 setup.py bdist_wheel
# auditwheel repair -w dist dist/*
# twine upload dist/*manylinux*