Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/setup.py Thu Dec 23 16:00:21 2021 -0500 +++ b/setup.py Thu Dec 23 17:24:51 2021 -0500 @@ -143,6 +143,19 @@ data_files = make_data_files_absolute(data_files, get_prefix()) + # when running under python2, even if called from setup, it tries + # and fails to perform an egg easy install even though it shouldn't: + # https://issues.roundup-tracker.org/issue2551185 + # Add this argument if we are an install to prevent this. + # This works right under python3. + # FIXME there has to be a better way than this + # https://issues.roundup-tracker.org/issue2551185 + + if sys.version_info[0] < 3: + for arg in sys.argv: + if arg == 'install': + sys.argv.append('--old-and-unmanageable') + # perform the setup action from roundup import __version__
