forked from KatanaGraph/katana
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (26 loc) · 1.28 KB
/
setup.py
File metadata and controls
35 lines (26 loc) · 1.28 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
import sys
assert sys.version_info.major >= 3 and sys.version_info.minor >= 6, "Katana requires Python 3.6 or greater"
import pathlib
sys.path.append(str(pathlib.Path.cwd() / "python"))
import katana_setup
def package_setup():
# Following PEP-518, use pyproject.toml instead of setup(setup_requires=...) to
# specify setup dependencies.
katana_setup.setup(source_dir="python", package_name="katana")
if __name__ == "__main__":
package_setup()
# This project can generate a pip package, but it's bad and is missing dependencies. If you must generate it, run
# `make katana_python_wheel` in your build directory. To install it:
#
# Install Katana native library
# conda install -c katanagraph/label/dev -c conda-forge katana-cpp=={{KATANA_VERSION}}
# Install Katana Python Conda dependencies (due to problems in the pip pyarrow package)
# conda install -c conda-forge python==3.8 pyarrow==4.0.1
# Install Katana Python pip dependencies (using what we can from pip)
# pip install numba
# Install Katana Python pip package
# pip install https://github.com/KatanaGraph/katana-releases/releases/download/{{KATANA_VERSION}}/\
# katana_python-{{KATANA_VERSION}}-cp38-cp38-linux_x86_64.whl
#
# Check that it was installed
# python -c "import katana; print(katana.__version__)"