summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml4
-rwxr-xr-xsetup.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000000000..0e4f8aeb1
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,4 @@
+[build-system]
+# Minimum requirements for the build system to execute.
+requires = ["setuptools", "wheel", "cython"] # PEP 508 specification
+
diff --git a/setup.py b/setup.py
index a492142ed..e850c3d13 100755
--- a/setup.py
+++ b/setup.py
@@ -364,7 +364,7 @@ def parse_setuppy_commands():
def setup_package():
- src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
+ src_path = os.path.dirname(os.path.abspath(__file__))
old_path = os.getcwd()
os.chdir(src_path)
sys.path.insert(0, src_path)