-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
45 lines (39 loc) · 1.37 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
44
45
import sys, os
try:
from skbuild import setup
except ImportError:
print(
"Please update pip, you need pip 10 or greater,\n"
" or you need to install the PEP 518 requirements in pyproject.toml yourself",
file=sys.stderr,
)
raise
from setuptools import find_packages
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
fastsweep_cmake_toolchain_file = os.environ.get("FASTSWEEP_CMAKE_TOOLCHAIN_FILE", "")
fastsweep_drjit_cmake_dir = os.environ.get("FASTSWEEP_DRJIT_CMAKE_DIR", "")
VERSION = "0.1.3"
setup(
name="fastsweep",
version=VERSION,
description="Eikonal solver using parallel fast sweeping",
author="Delio Vicini",
author_email="[email protected]",
license="BSD",
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(where="src"),
install_requires=["drjit"],
package_dir={"": "src"},
cmake_args=[
f'-DCMAKE_TOOLCHAIN_FILE={fastsweep_cmake_toolchain_file}',
f'-DDRJIT_CMAKE_DIR:STRING={fastsweep_drjit_cmake_dir}',
f'-DPROJECT_VERSION_INFO={VERSION}'
],
url="https://github.com/rgl-epfl/fastsweep",
cmake_install_dir="src/fastsweep",
include_package_data=True,
python_requires=">=3.8",
)