comparison setup.py @ 6573:4b627102b344

- 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.
author John Rouillard <rouilj@ieee.org>
date Thu, 23 Dec 2021 17:24:51 -0500
parents 2e568d6f72a4
children b3ba03d2b214
comparison
equal deleted inserted replaced
6572:2e568d6f72a4 6573:4b627102b344
140 data_files.append(include('share/doc/roundup/html/_images', '*')) 140 data_files.append(include('share/doc/roundup/html/_images', '*'))
141 data_files.append(include('share/doc/roundup/html/_sources', '*')) 141 data_files.append(include('share/doc/roundup/html/_sources', '*'))
142 data_files.append(include('share/doc/roundup/html/_static', '*')) 142 data_files.append(include('share/doc/roundup/html/_static', '*'))
143 143
144 data_files = make_data_files_absolute(data_files, get_prefix()) 144 data_files = make_data_files_absolute(data_files, get_prefix())
145
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')
145 158
146 # perform the setup action 159 # perform the setup action
147 from roundup import __version__ 160 from roundup import __version__
148 161
149 # long_description may not contain non-ascii characters. Distutils 162 # long_description may not contain non-ascii characters. Distutils

Roundup Issue Tracker: http://roundup-tracker.org/