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: devtarget command to symlink src into target #33
Merged
Conversation
This file contains 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
Recreate "target" with symlinks to files in "src" to ease development For example, `pip install -e .` will work
|
Should be fixed for Python 2.7 and 3.6 now |
with
and without ✅
(Tested on Python 2.7.13) Waiting on travis, but then I'd say let's get this in. Might be time to start collecting the dev workflow directly in the README. |
Merged
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.
Recreate "target" with symlinks to files in "src" to ease development
For example,
pip install -e .
will workCurrently if you edit a file under
src
you must reinstall the python module. If isntead you fisrt runpython setup.py devtarget
this will symlink files fromsrc
intotarget
instead of the default copy, which means you can usepip install -e .
to install the module as an editable module as long as you only edit existing files. If you add/remove files undersrc
you will need to rerun these commands. Default beahaviour should be unchanged.