Browse Source

[build] Add minimal `pyproject.toml`

pukkandan 2 years ago
parent
commit
e9df3d42c4
2 changed files with 9 additions and 2 deletions
  1. 3 0
      pyproject.toml
  2. 6 2
      setup.py

+ 3 - 0
pyproject.toml

@@ -0,0 +1,3 @@
+[build-system]
+requires = ['setuptools']
+build-backend = 'setuptools.build_meta'

+ 6 - 2
setup.py

@@ -1,8 +1,12 @@
 #!/usr/bin/env python3
 
-import os.path
-import subprocess
+# Allow execution from anywhere
+import os
 import sys
+
+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+
+import subprocess
 import warnings
 
 try: