-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 loc) · 1.5 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
import setuptools
import subprocess
from setuptools.command.install import install
class PySkeltonInstall(install):
def run(self):
super().run()
self.compile_lib()
def compile_lib(self):
wd = self.install_lib + "PySkelton"
# print(f"----- The building is here: {wd} -----")
subprocess.run(["make", "field_eval_static"],cwd=wd,shell=False)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="PySkelton",
version="0.0.1",
author="Alvaro Fuentes",
author_email="[email protected]",
description="Skeleton-based modeling library with scaffolding and convolution surfaces",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://gitlab.inria.fr/afuentes/pyskelton",
packages=setuptools.find_packages(),
package_data={'': ['*.c','makefile','libgsl.a','include/gsl/*.h'],},
keywords="scaffold skeleton modeling convolution surfaces",
install_requires=["pyhull","numpy","pyroots","swiglpk"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Mathematics",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX :: Linux",
],
cmdclass={'install': PySkeltonInstall},
)