Re: [Distutils] 'virtualenv -p jython' leaves 'pip' non-executable

2015-06-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/04/2015 03:43 AM, Suresh V. wrote:
 Could it be your umask? Just wondering...
 

Nope.  This issue only affects the 'jython' environment -- all other tox
environments run fine.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJVcECOAAoJEPKpaDSJE9HY73cP/ip5pY1NxhdOo0jAHACQxGGN
U4bhzcNm0Qy+WGHQfCfNnIVAVMNgAdFV1nfI1Uu6x4I4lS6Ljm5Q1lXn4k4SqHcg
ttGs1nDDuZYEYFooKKxOsLOWISwR7FTQct9tOUAZa+uu/a1uN8RyjwbB2/c6XOJU
HR0FYfIAn37yZ3I6pITFrC5cUJ3E2ddDZBjim7jHvWGgQaSb+5fjor1BRKzrVj46
L6nxLPLsaQeepJtWGvDr9OzIr4zfovhtSdLXOr7uCNrORk49VGQYETjk4hDenB2I
c/OFEFt+XTL5Rf95fTQNj7v04rd80witBTSN5xNEyIqYaduFinbql2gEmTkooqpc
cJCkBHpphHY5UJj9fnQPqVKQjRL0kaopWXg+4DGEqPu5Rj+V21Cn9BHad8flo4No
jjcwSFjRTqJdfc4uzQ20UMZFOkX01Ak/REO77MfxcywE8nqrRFqC8j8IS6gGKWAN
+k7/UjgoOzC0qzmjnYBGBXZH/UgQMPFEcIQ2HJ/o1G7vL9y6MocC2Hjc558YLfT6
+IiDmOrIErxV8oMWkarCoTFdW7aILim8AbCQ/XfUezVE3dNkbXuXf/VoUWrOutni
CMwpDTcwdZCvdqnwuE2/nEZcCQUTxyaVUorSERjsDGB3SWuInbYniepNqAPFQr0y
yaCBn3tBhnKGMIwmRku3
=GYVu
-END PGP SIGNATURE-

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] 'virtualenv -p jython' leaves 'pip' non-executable

2015-06-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Trying to get 'tox -e jython' to work:

-  % 

$ file `which jython`
/home/tseaver/bin/jython: symbolic link to `/opt/jython-2.7.0/bin/jython'

$ /opt/Python-2.7.9/bin/pip --version
pip 7.0.3 from
/opt/Python-2.7.9/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg (python
2.7)

$ /opt/Python-2.7.9/bin/virtualenv --version
13.0.3

$ /opt/Python-2.7.9/bin/tox --version
2.0.2 imported from
/opt/Python-2.7.9/lib/python2.7/site-packages/tox-2.0.2-py2.7.egg/tox/__init__.pyc

$ git clone g...@github.com:zopefoundation/zope.event
Cloning into 'zope.event'...
remote: Counting objects: 531, done.
remote: Total 531 (delta 0), reused 0 (delta 0), pack-reused 531
Receiving objects: 100% (531/531), 84.80 KiB, done.
Resolving deltas: 100% (288/288), done.

$ /opt/Python-2.7.9/bin/tox -e jython
GLOB sdist-make: /tmp/zope.event/setup.py
jython create: /tmp/zope.event/.tox/jython
jython inst: /tmp/zope.event/.tox/dist/zope.event-4.0.4.dev0.zip
ERROR: invocation failed (errno 13), args:
[local('/tmp/zope.event/.tox/jython/bin/pip'), 'install',
'/tmp/zope.event/.tox/dist/zope.event-4.0.4.dev0.zip'], cwd: /tmp/zope.event
Traceback (most recent call last):
  File /opt/Python-2.7.9/bin/tox, line 9, in module
load_entry_point('tox==2.0.2', 'console_scripts', 'tox')()
...
  File /opt/Python-2.7.9/lib/python2.7/subprocess.py, line 1335, in
_execute_child
raise child_exception
OSError: [Errno 13] Permission denied

$ ls -laF .tox/jython/bin
total 64
drwxrwxr-x 2 tseaver tseaver  4096 Jun  3 13:40 ./
drwxrwxr-x 6 tseaver tseaver  4096 Jun  3 13:40 ../
- -rw-rw-r-- 1 tseaver tseaver  2208 Jun  3 13:40 activate
- -rw-rw-r-- 1 tseaver tseaver  1264 Jun  3 13:40 activate.csh
- -rw-rw-r-- 1 tseaver tseaver  2477 Jun  3 13:40 activate.fish
- -rw-rw-r-- 1 tseaver tseaver  1137 Jun  3 13:40 activate_this.py
- -rw-rw-r-- 1 tseaver tseaver   255 Jun  3 13:40 easy_install
- -rw-rw-r-- 1 tseaver tseaver   255 Jun  3 13:40 easy_install-2.7
- -rwxrwxr-x 1 tseaver tseaver 15055 Jun  3 13:40 jython*
- -rw-rw-r-- 1 tseaver tseaver   227 Jun  3 13:40 pip
- -rw-rw-r-- 1 tseaver tseaver   227 Jun  3 13:40 pip2
- -rw-rw-r-- 1 tseaver tseaver   227 Jun  3 13:40 pip2.7
lrwxrwxrwx 1 tseaver tseaver 6 Jun  3 13:40 python - jython*
lrwxrwxrwx 1 tseaver tseaver 6 Jun  3 13:40 python2 - jython*
lrwxrwxrwx 1 tseaver tseaver 6 Jun  3 13:40 python2.7 - jython*
- -rw-rw-r-- 1 tseaver tseaver   234 Jun  3 13:40 wheel
-  % 

If I make the 'pip' script executable, then 'tox -e jython' runs:

-  % 
$ chmod a+x .tox/jython/bin/pip

$ tox -e jython
GLOB sdist-make: /tmp/zope.event/setup.py
jython inst-nodeps: /tmp/zope.event/.tox/dist/zope.event-4.0.4.dev0.zip
jython installed: -f
file:///home/tseaver/.pip/wheels,wheel==0.24.0,zope.event==4.0.4.dev0
jython runtests: PYTHONHASHSEED='441626771'
jython runtests: commands[0] | python setup.py -q test -q
warning: no previously-included files matching '*.dll' found anywhere in
distribution
warning: no previously-included files matching '*.pyc' found anywhere in
distribution
warning: no previously-included files matching '*.pyo' found anywhere in
distribution
warning: no previously-included files matching '*.so' found anywhere in
distribution
warning: no previously-included files matching '*.class' found anywhere
in distribution
..
- --
Ran 2 tests in 0.004s

OK
___ summary

  jython: commands succeeded
  congratulations :)
-  % 

So, leaving tox out of the picture:

-  % 
$ /opt/Python-2.7.9/bin/virtualenv -p jython foobar
Running virtualenv with interpreter /home/tseaver/bin/jython
Cannot find file /opt/jython-2.7.0/Include (bad symlink)
New jython executable in foobar/bin/jython
Installing setuptools, pip, wheel...done.

$ ll foobar/bin/
total 64
drwxrwxr-x 2 tseaver tseaver  4096 Jun  3 13:46 ./
drwxrwxr-x 5 tseaver tseaver  4096 Jun  3 13:45 ../
- -rw-rw-r-- 1 tseaver tseaver  2192 Jun  3 13:46 activate
- -rw-rw-r-- 1 tseaver tseaver  1248 Jun  3 13:46 activate.csh
- -rw-rw-r-- 1 tseaver tseaver  2461 Jun  3 13:46 activate.fish
- -rw-rw-r-- 1 tseaver tseaver  1137 Jun  3 13:46 activate_this.py
- -rw-rw-r-- 1 tseaver tseaver   239 Jun  3 13:46 easy_install
- -rw-rw-r-- 1 tseaver tseaver   239 Jun  3 13:46 easy_install-2.7
- -rwxrwxr-x 1 tseaver tseaver 15055 Jun  3 13:45 jython*
- -rw-rw-r-- 1 tseaver tseaver   211 Jun  3 13:46 pip
- -rw-rw-r-- 1 tseaver tseaver   211 Jun  3 13:46 pip2
- -rw-rw-r-- 1 tseaver tseaver   211 Jun  3 13:46 pip2.7
lrwxrwxrwx 1 tseaver tseaver 6 Jun  3 13:45 python - jython*
lrwxrwxrwx 1 tseaver tseaver 6 Jun  3