This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dave Jones
Recipients Dave Jones
Date 2017-01-13.15:06:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484319985.48.0.948212892156.issue29261@psf.upfronthosting.co.za>
In-reply-to
Content
While attempting to diagnose something (unrelated to this issue) under python 3.6, I used the following steps to clone and build a non-root python installation:

    $ mkdir py36
    $ hg clone https://hg.python.org/cpython
    $ cd cpython
    $ hg update 3.6
    $ ./configure --prefix=/home/pi/py36
    $ make
    $ make install

Afterwards I attempted to set up a venv for further testing:

    $ /home/pi/py36/bin/python3 -m venv py36env

This succeeded but, unfortunately, activating the venv proved impossible as the "activate" script was missing from its "bin" sub-dir. 

After a bit of investigation it appears that "make install" had copied "Lib/venv/scripts/posix" but not "Lib/venv/scripts/common" into the installation, hence the templates for "activate.csh" and "activate.fish" are present, but not the "activate" template.

I had a search around for related issues but only found #22343 which explains why "activate" is no longer present (because it's moved from scripts/posix/ to scripts/common/) but I don't think is responsible for common not getting copied by "make install".

It appears adding "venv/scripts/common" to LIBSUBDIRS in Makefile.pre.in fixes the issue (as in the attached patch) but I've no idea if this covers all necessary platforms (I'd guess Windows doesn't use the Makefile if #22343 fixed things for it?).
History
Date User Action Args
2017-01-13 15:06:25Dave Jonessetrecipients: + Dave Jones
2017-01-13 15:06:25Dave Jonessetmessageid: <1484319985.48.0.948212892156.issue29261@psf.upfronthosting.co.za>
2017-01-13 15:06:25Dave Joneslinkissue29261 messages
2017-01-13 15:06:24Dave Jonescreate