aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-03 10:39:21 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-03 11:25:01 +0530
commite9df3d42c48428a41b98fcfd065f89a6c12c7149 (patch)
tree59f7527f7f2db75811f60882cd7c32a247a08a1a
parentd80ca5deaa46db6e498399bb04a72a4c10ee8e22 (diff)
downloadhypervideo-pre-e9df3d42c48428a41b98fcfd065f89a6c12c7149.tar.lz
hypervideo-pre-e9df3d42c48428a41b98fcfd065f89a6c12c7149.tar.xz
hypervideo-pre-e9df3d42c48428a41b98fcfd065f89a6c12c7149.zip
[build] Add minimal `pyproject.toml`
-rw-r--r--pyproject.toml3
-rw-r--r--setup.py8
2 files changed, 9 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000000000..75e0100fe
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ['setuptools']
+build-backend = 'setuptools.build_meta'
diff --git a/setup.py b/setup.py
index 88716152a..e2520ff6f 100644
--- a/setup.py
+++ b/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: