[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2876: tox won't run on ubuntu xenial: python3
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Aug 1 16:49:28 UTC 2017
#2876: tox won't run on ubuntu xenial: python3
---------------------------+--------------------
Reporter: warner | Owner: daira
Type: defect | Status: new
Priority: major | Milestone: 1.13.0
Component: packaging | Version: 1.12.1
Resolution: | Keywords:
Launchpad Bug: |
---------------------------+--------------------
Comment (by warner):
Some other ideas that exarkun had in today's devchat:
* add a `tox.py` script to the tahoe source tree, which would:
* check that it's running under py2 (and explain the situation if not)
* find the `tox` entrypoint (by asking `pkg_resources`, probably, or
maybe just hard-coding the current `from tox import cmdline`)
* invoke the entrypoint
* or find some module that tox imports and add a `.py` file of the same
name to tahoe's top-level directory
* as in, "that'll teach them to not use absolute imports"
* warner was.. not fond of this one
If we did the `tox.py` thing, we could put a note in the "how to run
tests" doc that said "on many systems you can just run `tox`, but if you
see this complain about py3, then you'll need to run `python2 tox.py`
instead". The error message that our setup.py raises (when run under py3)
would be a good place for these instructions too.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2876#comment:14>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list