This works for me (py2.7)
I have an additional module with its setup.py in a subfolder of the main project.
from distutils.core import run_setup [..setup(..) config of the main project..] run_setup('subfolder/setup.py', script_args=['develop',],stop_after='run')
thanks
Update:
Digging time you can find in distutils.core.run_setup
'script_name' is a file that will be run with 'execfile()'; 'sys.argv[0]' will be replaced with 'script' for the duration of the call. 'script_args' is a list of strings; if supplied, 'sys.argv[1:]' will be replaced by 'script_args' for the duration of the call.
therefore the above code will be changed to
import sys from distutils.core import run_setup run_setup('subfolder/setup.py', script_args=sys.argv[1:],stop_after='run')
Littleeaster
source share