From 881daa395f48645cdb4133b20d5d7857fad264b9 Mon Sep 17 00:00:00 2001 From: Peter Badida Date: Tue, 27 Nov 2018 18:53:01 +0100 Subject: [PATCH] Remove setup.py from installed package --- setup.py | 3 +++ 1 file changed, 3 insertions(+) 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},