forked from ubc-systopia/gosdt-guesses
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
44 lines (39 loc) · 1.54 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
import platform
import os
import pathlib
import distro
from setuptools import find_packages
from skbuild import setup
cmake_args = []
if platform.system() == "Windows" or (platform.system() == "Linux" and distro.id() == "centos"):
assert "VCPKG_INSTALLATION_ROOT" in os.environ, \
"The environment variable \"VCPKG_INSTALLATION_ROOT\" must be set before running this script."
toolchain_path = pathlib.Path(os.getenv("VCPKG_INSTALLATION_ROOT")) / "scripts/buildsystems/vcpkg.cmake"
cmake_args.append("-DCMAKE_TOOLCHAIN_FILE={}".format(toolchain_path))
print("Additional CMake Arguments = {}".format(cmake_args))
setup(
name="treefarms",
version="0.2.4",
description="Implementation of Trees FAst RashoMon Sets",
author="UBC Systopia Research Lab",
url="https://github.com/ubc-systopia/treeFarms",
license="BSD 3-Clause",
packages=find_packages(where='.'),
cmake_install_dir="treefarms",
cmake_args=cmake_args,
python_requires=">=3.7",
long_description=pathlib.Path("README_PyPI.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
install_requires=["setuptools",
"wheel",
"attrs",
"packaging>=20.9",
"editables==0.2;python_version>'3.0'",
"pandas",
"scikit-learn",
"sortedcontainers",
"gmpy2",
"matplotlib",
"tqdm",
"timbertrek"]
)