Ability to pip install -e . so modules can be accessed the repo parent directory#14
Merged
itsderek23 merged 5 commits intomasterfrom Feb 14, 2020
Merged
Ability to pip install -e . so modules can be accessed the repo parent directory#14itsderek23 merged 5 commits intomasterfrom
pip install -e . so modules can be accessed the repo parent directory#14itsderek23 merged 5 commits intomasterfrom
Conversation
Author
|
This is a more manual way to do it, but would require adding a line to top of every script or doing some unexpected-magic within our own files. https://stackoverflow.com/questions/4383571/importing-files-from-different-folder |
Author
|
Tory verified this worked on his device. |
|
Fantastic! Thanks, both! |
Coffee-Boyy
pushed a commit
to Coffee-Boyy/depthai
that referenced
this pull request
May 12, 2020
Fix (harmless) warning on Darwin systems
jdavidberger
pushed a commit
to constructiverealities/depthai
that referenced
this pull request
May 26, 2022
Fetching USB speed and Myriad X serial number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If a user wants to write their own script that relies on DepthAI, they currently need to create it within the top-level of this repo. This is painful:
cdinto their locally checked out copyThis PR adds a workaround so folks can access depthai and its dependencies globally.
The process on a local computer:
Then from anywhere on the host they can access depthai:
The
eflag installs an editable python package that adds this repo's path tosys.path. Once it is added to the path, we're able to load modules.You can see it via
pip list:This is an interim workaround to access depthai system-wide until we have a proper
pip-distributed python package.