Submitting new feature, "--fixup" option to fix a virtualenv without moving it #3
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.
Hey edward - I used your script when packaging some python applications, and wound up having to add a feature to make it work properly for my needs. Specifically I had an application we had to build as a limited user inside a build environment, and package it as an RPM; but the files needed to be deployed into /opt on the live system. So I built a full virtualenv in an arbitrary location under the build system, then ran your script with my new "--fixup" option on it. This prepares the virtualenv to be executed in a new location without actually moving the files, and let us package the RPM the way I needed to.
I'm submitting it back in the hopes that others will find the feature cool. I updated the readme to describe the feature. There were also a couple small bugs (like using hardcoded "python" instead of the discovered executable in the source directory) that I fixed inline. Enjoy.