I assume you’re building an sdist (e.g. a .tar.gz file, not a .whl file), since wheels don’t generally include the setup.py file. In that case you want to specify additional files to include with the MANIFEST.in file.
More details are available at https://packaging.python.org/guides/using-manifest-in/ > On 30/6, 2020, at 08:45, Gabriel Becedillas <gabriel.becedil...@gmail.com> > wrote: > > Hi, > I'm trying to build a python package but my setup.py is actually named > pkg1_setup.py (this is because I have multiple packages in the same repo). > The package built is *almost* fine, except that setup.py is not included in > the package built. I understand that the *normal* structure would be to have > something like this: > * setup.py > * mypackage\... > > but before refactoring the repository structure to accommodate that I'd like > to validate that there is no other way of doing that. I tried using the > script_name parameter to setuptools.setup but had no luck. > Any suggestions? > Thanks a lot > > -- > Distutils-SIG mailing list -- distutils-sig@python.org > To unsubscribe send an email to distutils-sig-le...@python.org > https://mail.python.org/mailman3/lists/distutils-sig.python.org/ > Message archived at > https://mail.python.org/archives/list/distutils-sig@python.org/message/EXOGGI2YTZPJVFLK5LIVYKUGQZ4G4JQ2/ -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/HSCMIXOLV64CEXCJYNVIHEFZ3I4GK6MH/