Browse Source

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>
Andrey Bienkowski 3 năm trước cách đây
mục cha
commit
142bb0e3d4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      setup.py

+ 1 - 0
setup.py

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