Browse Source

python: setuptools why are you so flimsy.

pull/2/head
Vladimír Vondruš 7 years ago
parent
commit
f66594f36b
  1. 7
      src/python/setup.py.cmake

7
src/python/setup.py.cmake

@ -68,8 +68,11 @@ setup(
package_dir={
# Explicitly supply package_dir so importing this file from another
# setup.py (i.e., when this is a bundled dependency of another project)
# does the right thing
'.': os.path.dirname(__file__)
# does the right thing. Can't use '': because that doesn't work when
# executing setup.py directly, can't use '.': because that doesn't work
# when executing setup.py from another setup, so need to list all
# packages explicitly.
i: os.path.join(os.path.dirname(__file__), i.replace('.', '/')) for i in packages
},
cmdclass={
'build_ext': TheExtensionIsAlreadyBuiltWhyThisHasToBeSoDamnComplicated

Loading…
Cancel
Save