-
Notifications
You must be signed in to change notification settings - Fork 47
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
Cannot do "python setup.py install" when in the same directory as setup.py #1
Comments
You're probably right; at this stage I've only really used the packaging system to run the tests. I've got another check-in almost ready to go dealing with namespace handling. Hopefully I'll get that done by tomorrow. Afterwards I'll address the installation issue you're encountering. In the meanwhile, you don't really need to install anything... just reference the .py file as your Doxygen filter. |
I didn't seem to run into the same issue when I tried. Which platform did you use? Regardless I've applied a fix that ought to remove the issue you've described. Please let me know if it works for you. |
I just found out what works. I tried doing "python setup.py install" and that same error is thrown. I get this output: jacob@debian: Notice the ./test.py as opposed to the test.py, without the dot-slash. I would suppose that dir(file) would return the empty string when the program is invoked by "python test.py", and thus would throw an exception; This is consistent with my findings. But, it returns "." when the program is run like ./test.py . A simple test in the form |
Ah, okay, thanks. That explains why I wasn't seeing it (I was executing it directly on all the platforms I was trying it on). As I couldn't reproduce it I tried to address the problem I thought you'd described, file returning an empty string. I'll try and tackle it today. |
Glad to help! Anything I can do to help the open source movement. |
I'm pretty sure it'll be fixed for you now as I was able to reproduce the problem and verify that it's gone. |
This is because of the line chdir(dirname(file)). Since dirname(file) returns "" when in the same directory as setup.py, chdir takes "" and thus throws an exception.
Correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: