[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2876: tox won't run on ubuntu xenial: python3

Tahoe-LAFS trac at tahoe-lafs.org
Mon Jun 5 10:56:23 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):

 Looking at the `tox` source code, in `tox/session.py` (around line 412, in
 `Session._makesdist()`), there's a hard-coded use of `sys.executable` to
 run the sdist command:

 {{{
 action.popen([sys.executable, setup, "sdist", "--formats=zip",
               "--dist-dir", self.config.distdir, ],
              cwd=self.config.setupdir)
 }}}

 which suggests to me that a py3-based tox just can't run a py2-requiring
 setup.py.

 I suppose we could change our setup.py check to tolerate an `sdist`
 command, but reject all others. Or we could soften it to a warning.

 I think we ought to allow our published "just run `tox`" test procedure to
 work on the current ubuntu LTS (or any other distribution that has
 python2.7 available, even if `tox` or the system default `python` are
 py3).

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2876#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list