forked from bjorgve/vampyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (25 loc) · 652 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (25 loc) · 652 Bytes
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
# -*- coding: utf-8 -*-
import sys
from pathlib import Path
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
def version_from_file(rel_path):
here = Path(__file__).parent
f = here / rel_path
with f.open("r") as fp:
return fp.read().strip()
setup(
version=version_from_file("VERSION"),
packages=["vampyr"],
package_dir={"": "src"},
cmake_args=[
"-DPYMOD_INSTALL_FULLDIR:STRING=src/vampyr",
],
)