Setup.py install dependency too?
I have a python distribution and it depends on some other modules that I also made. The directory tree looks like this .
I wrote a setup.py file for one of these modules (pydirac225 for those of you who follow them at home) and I want this setup.py to be called from the main setup.py file?
Another module dependency (pysoundtouch14) has a setup.py file, but its contents are pasted into the main setup.py script. It seems more modular that each of these components defines how they are configured and allows the main installation file to call its installation scripts separately. Is there a standard way to solve this problem?
To recap, I have code that depends on other modules: should the other module setup code go into the main setup.py file, or is there a way for my setup.py code to call their setup.py files?
a source to share
which depends on other modes
if that means you are importing another module, your main setup.py file should take care of the dependency and include all the necessary files.
Alternatively, you can look at the include parameter and or data_files of the setup.py parameter
clarification: if your python scripts that should be bundled with your main .py installation import the extensions, the extensions are automatically included in the package.
a source to share