Skip to content

Commit b754018

Browse files
committed
- issue2551185 - must set PYTHONPATH=... python2 setup.py install --prefix=/tmp/r2.
Force insert --old-and-unmangable to get it to use a classic installer and not an easy install. This only affects python2.
1 parent 904a6a7 commit b754018

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6973
Features:
7074

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)