setup.py: add parent to sys.path

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

See <https://github.com/pypa/setuptools/discussions/3134>
This commit is contained in:
Andrey Bienkowski 2022-02-25 07:52:50 +03:00
parent 6cbb7d650f
commit 142bb0e3d4
1 changed files with 1 additions and 0 deletions

View File

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