comparison setup.py @ 6524:f961dbbc3573

issue2551167 roundup issues when using pip install Running pip install generates a wheel install. This places locale, template and man pages under site-packages/usr/share/.... These changes make roundup look there for templates (affecting admin.py) and locale (affecting i18n.py) files. This also makes it work better in virtual environment and containers (docker). There is also a commented out bit of code in setup.py that prevents it from making a bdist_wheel forcing a regular install with files put under /usr/locale etc. This can be re-enabled if needed for 2.2 if there are still issues with roundup that aren't solved by then.
author John Rouillard <rouilj@ieee.org>
date Sun, 07 Nov 2021 01:49:03 -0400
parents cbc18a8bc61f
children 2e568d6f72a4
comparison
equal deleted inserted replaced
6523:49d26e77d173 6524:f961dbbc3573
214 'console_scripts': scripts 214 'console_scripts': scripts
215 }, 215 },
216 data_files=data_files) 216 data_files=data_files)
217 217
218 if __name__ == '__main__': 218 if __name__ == '__main__':
219
220 # Prevent `pip install roundup` from building bdist_wheel.
221 # Man pages, templates, locales installed under site-packages not
222 # in normal system locations.
223 # https://stackoverflow.com/questions/36846260/can-python-setuptools-install-files-outside-dist-packages
224 '''
225 if 'bdist_wheel' in sys.argv:
226 raise RuntimeError("This setup.py does not support wheels")
227 '''
228
219 os.chdir(os.path.dirname(__file__) or '.') 229 os.chdir(os.path.dirname(__file__) or '.')
220 main() 230 main()
221 231
222 # vim: set filetype=python sts=4 sw=4 et si : 232 # vim: set filetype=python sts=4 sw=4 et si :

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