devel/py-nose + devel/py-distribute runtime hiccup

John W. O'Brien john at saltant.com
Mon Jan 28 03:54:36 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I tripped over this today while doing a trial build of math/py-pandas
under lang/python32.

# pkg_info -xoQ python distribute nose pandas
py32-distribute-0.6.34:devel/py-distribute
py32-nose-1.2.1:devel/py-nose
py32-pandas-0.10.1:math/py-pandas
python32-3.2.3_2:lang/python32
# nosetests pandas
- ----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK


Huh? Why isn't nose finding any of pandas' 2000+ tests? They're all
installed in the same place they've always been.


# nosetests --verbosity=3 pandas
[snip]
nose.selector: INFO:
/usr/local/lib/python3.2/site-packages/pandas-0.10.1-py3.2-freebsd-9.1-STABLE-amd64.egg/pandas/tests/test_algos.py
is executable; skipped
[snip]

Sure enough, everything in ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
is installed with 0755 on my python3.2 test machine, whereas it is
0644 with python2.7. After a bit of digging, I think I traced the
cause to a difference between the easy_install.unpack_and_compile
function as implemented by setuptools vs. distribute.

The nose docs for the --exe option confirm my guess about the
rationale for its behavior: don't assume that executable .py files are
import-safe. In my case, I don't think there's a problem, but I'm
curious...

Can anybody shed light on why we would want to install package data
with the X bits set?

PS: devel/py-six and devel/py-dateutil seem happy with the addition of
the virtualenv plist fix. math/py-numpy almost so, but fails to
install the benchmarks, for reasons that I have not cared yet to
investigate.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRBfZmAAoJEEdKvTwaez9w74MH+QEMdsp7+83/T2X+x1Nl7DnF
liTu9cU4o17Wpf6saf369C7+hMz6s6eP7xg+8GuabxtDe+V74xxUdK0FJf0bWcs9
hM8VahUFesKixLgA4oC0mCWgn15N7KRObA4sND+YjcLoF4zejMQN6HLXwc/3SebW
t9WgfPy1OGO7oCUWcqqPca3VfBsIZi15afSnCWEDzMvncJ7ji1kLH+8eqJokEb7Q
cY3U/OYqZeF6Sydk1JZgFz2TAZso+ZxEMEAAP0O4SaIlGt0Ek576KtSNzeKdNp5r
HpI5kW8h2OTVTyqNAo2mwwP94v7YLespXSpWd5t8Espcwm6oCWkuGxNet06MI68=
=9/CN
-----END PGP SIGNATURE-----


More information about the freebsd-python mailing list