File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ Fixed:
6565 retries once 5 of them have been used. (John Rouillard)
6666- issue2551169 - setup.py enters endless loop on gentoo linux python2
6767 installation. Fixed.
68+ - issue2551185 - must set PYTHONPATH=... python2 setup.py install
69+ --prefix=/tmp/r2. Force insert --old-and-unmangable to get it
70+ to use a classic installer and not an easy install. This only
71+ affects python2.
6872
6973Features:
7074
Original file line number Diff line number Diff line change @@ -143,6 +143,19 @@ def main():
143143
144144 data_files = make_data_files_absolute (data_files , get_prefix ())
145145
146+ # when running under python2, even if called from setup, it tries
147+ # and fails to perform an egg easy install even though it shouldn't:
148+ # https://issues.roundup-tracker.org/issue2551185
149+ # Add this argument if we are an install to prevent this.
150+ # This works right under python3.
151+ # FIXME there has to be a better way than this
152+ # https://issues.roundup-tracker.org/issue2551185
153+
154+ if sys .version_info [0 ] < 3 :
155+ for arg in sys .argv :
156+ if arg == 'install' :
157+ sys .argv .append ('--old-and-unmanageable' )
158+
146159 # perform the setup action
147160 from roundup import __version__
148161
You can’t perform that action at this time.
0 commit comments