diff --git a/setup.py b/setup.py index b7c8139..41c94fe 100644 --- a/setup.py +++ b/setup.py @@ -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},