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

Provide instructions for users who would like to run tool from source #11

Open
Tracked by #9
glemieux opened this issue Aug 22, 2024 · 1 comment
Open
Tracked by #9

Comments

@glemieux
Copy link
Collaborator

glemieux commented Aug 22, 2024

Option A: https://pip.pypa.io/en/stable/topics/local-project-installs/

@glemieux
Copy link
Collaborator Author

glemieux commented Aug 23, 2024

The most straight forward way to do this is by running from the src directory the following command:

conda run -n <environment> python -m landusedata <subcommand> <positional args>

Notes that this assumes that the user has installed the necessary dependencies in their own conda environment.

For my future self, the reason to do this is that the package is intended to be entered via main.py. The -m tells python to set __name__ to __main__ for the module directory being called.

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

1 participant