Python Distutils: How to overwrite an existing module in another installed package -
im struggling on figuring out how create setup.py module overwrite series of specific modules in location.
for example, lets i've got new_file_1.py , new_file_2.py (in right directory structure above setpu.py)
/setup.py /my_modules/__init__.py /my_modules/new_file_file_1.py /my_modules/new_file_file_2.py
and need new_files overwrite old files live in path somewhere else, not 1 of generic python library paths.
i realize brute force, there way hard-code, or take in via command line, absolute path isn't going to staple on sorts of generic path stuff? e.g. if tell setup.py --prefix=/some/path/ install /some/path/.../python2x/dist-packages/ or that.
i recognize shell-script simpler, work doing @ moment necessitates stay within python scripts.
tldr, can force distutils put files in particular specified location?
Comments
Post a Comment