1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-03 02:05:54 +00:00

add pyproject.toml, fix sys.path, fixes #6466

setup.py: add parent to sys.path

When using pyproject.toml the parent of setup.py is not on sys.path by default.

See <pypa/setuptools#3134>.
This commit is contained in:
Thomas Waldmann 2022-04-07 18:48:48 +02:00
parent e5e360d5b6
commit 82a80bf760
2 changed files with 4 additions and 0 deletions

3
pyproject.toml Normal file
View file

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

View file

@ -19,6 +19,7 @@
except ImportError:
cythonize = None
sys.path += [os.path.dirname(__file__)]
import setup_checksums
import setup_compress
import setup_crypto