Skip to content

pandas/tests installed as executables (linux) #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lodagro opened this issue Feb 8, 2012 · 6 comments
Closed

pandas/tests installed as executables (linux) #761

lodagro opened this issue Feb 8, 2012 · 6 comments
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite

Comments

@lodagro
Copy link
Contributor

lodagro commented Feb 8, 2012

Pandas installs its tests now with executable flag. Result is that nosetests skips them and no tests are find.
Running nosetests in the repository itself works fine.

@adamklein
Copy link
Contributor

Note quite following the issue. On my machine, "python setup.py install" followed by nosetests pandas (from arbitrary directory) runs all the tests (kubuntu 11.10). You see something different? Any more insight you can provide on your environment?

@wesm
Copy link
Member

wesm commented Feb 8, 2012

They aren't executable in the git repository, does setuptools make them so? If you run nosetests --exe (per http://stackoverflow.com/questions/6333495/run-all-tests-in-directory-using-nose) it will run them-- that's very irritating though.

I just did a fresh install and see:

11:53 ~/epd/lib/python2.7/site-packages/pandas-0.7.0.dev_94f7a81-py2.7-linux-x86_64.egg/pandas/tests $ ll *.py
-rwxr-xr-x 1 root root      1 2012-02-08 11:52 __init__.py*
-rwxr-xr-x 1 root root    110 2012-02-08 11:52 test_algos.py*
-rwxr-xr-x 1 root root   7982 2012-02-08 11:52 test_common.py*
-rwxr-xr-x 1 root root  12365 2012-02-08 11:52 test_daterange.py*
-rwxr-xr-x 1 root root  40582 2012-02-08 11:52 test_datetools.py*
-rwxr-xr-x 1 root root  20224 2012-02-08 11:52 test_format.py*
-rwxr-xr-x 1 root root 150243 2012-02-08 11:52 test_frame.py*
-rwxr-xr-x 1 root root    589 2012-02-08 11:52 test_functions.py*
-rwxr-xr-x 1 root root   4292 2012-02-08 11:52 test_graphics.py*
-rwxr-xr-x 1 root root  52660 2012-02-08 11:52 test_groupby.py*
-rwxr-xr-x 1 root root  50462 2012-02-08 11:52 test_index.py*
-rwxr-xr-x 1 root root  10755 2012-02-08 11:52 test_internals.py*
-rwxr-xr-x 1 root root  39078 2012-02-08 11:52 test_multilevel.py*
-rwxr-xr-x 1 root root    741 2012-02-08 11:52 test_ndframe.py*
-rwxr-xr-x 1 root root  40854 2012-02-08 11:52 test_panel.py*
-rwxr-xr-x 1 root root   1626 2012-02-08 11:52 test_reshape.py*
-rwxr-xr-x 1 root root  67818 2012-02-08 11:52 test_series.py*
-rwxr-xr-x 1 root root    411 2012-02-08 11:52 test_tools.py*
-rwxr-xr-x 1 root root  12567 2012-02-08 11:52 test_tseries.py*

@wesm
Copy link
Member

wesm commented Feb 8, 2012

It's a setuptools "bug". I think the only real solution is to do:

nosetests --exe pandas

when running the tests on an installed package. I don't have the patience to muck around with the setup.py right now to try to work around this.

@lodagro
Copy link
Contributor Author

lodagro commented Feb 8, 2012

I ran a git bisect, since before this worked fine.

eb2234231fbd3fb9ecf21c82b2ee1e45c1dbca3a is the first bad commit
commit eb2234231fbd3fb9ecf21c82b2ee1e45c1dbca3a
Author: Gregg Lind <[email protected]>
Date:   Wed Jan 4 10:18:05 2012 -0600

    re #520, more setup.py additions

Had a look at this commit (eb22342), looks like pandas switched to setuptools here.
So this confirms your idea that it is setuptools related. I have very little experience with setuptools so i dont know how to fix this, maybe @gregglind has an idea.

@gregglind
Copy link
Contributor

Noted, and I will investigate. Awesome use of git bisect btw!

@cpcloud
Copy link
Member

cpcloud commented Jun 3, 2014

very stale. if this comes up again pls reopen.

@cpcloud cpcloud closed this as completed Jun 3, 2014
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

5 participants