Merge pull request #369 from kivy/fix_setup

Remove setup.py from installed package
This commit is contained in:
Peter Badida 2018-11-27 18:59:14 +01:00 committed by GitHub
commit 6c2f7a5997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,9 @@ with open(join(dirname(__file__), 'jnius', 'config.pxi'), 'w') as fd:
if LIB_LOCATION is not None:
fd.write('DEF JNIUS_LIB_SUFFIX = {0!r}\n\n'.format(LIB_LOCATION))
# pop setup.py from included files in the installed package
SETUP_KWARGS['py_modules'].remove('setup')
# create the extension
setup(
cmdclass={'build_ext': build_ext},