Skip to content
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

setup.py seems to assume repo root #3

Open
patrick-stephens opened this issue May 19, 2023 · 2 comments
Open

setup.py seems to assume repo root #3

patrick-stephens opened this issue May 19, 2023 · 2 comments

Comments

@patrick-stephens
Copy link

You cannot seem to run from another path e.g python /test/setup.py, it look for README.md, etc. locally rather than at the location of the .py file.

@anthonyharrison
Copy link
Owner

@patrick-stephens The behaviour is correct - the layout of the repo follows the standard Python packageing structure.

@patrick-stephens
Copy link
Author

Sorry if it wasn't clear, I assumed you could run the script from a relative path and it would pick up the correct directory. If you run it, then it assumes the local directory is the repo root rather than where the script is located.

The structure is correct but it makes an assumption about the current directory. If it grabbed the realpath or similar of the script file location it would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants