-
-
Notifications
You must be signed in to change notification settings - Fork 60
Add argument for cpython clone #69
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
Comments
While I merged #70, it turns out this approach technically isn't quite right now that the A command like:
breaks the general principle of "don't run modules inside packages as if they were standalone scripts" (which became a guideline as ignoring it does odd things to sys.path and means you can import the same module twice under different names). There are a few possible options for resolving this, and I've listed each of them below with the resulting permitted invocations:
My personal preference would be for the last one, as it's the only option where the relative path to the directory to run and the CPython checkout being either the current directory or a child directory called |
I forgot to mention another potential benefit of the third option: it sets us up to bundle cherry-picker with all its dependencies as an executable |
#64 raises a 4th option: given a basic setup.py file, the cherry-picker could be installed with Regardless of which option we choose, the |
Once #99 is merged, this won't be necessary, since people can do the cherry-pick from cpython directory. |
With the update made in #99 you can now cherry-pick from within cpython directory, so a new argument is not necessary. |
I already have a cpython clone elsewhere, so it would be nice if I didn't have to clone it again into my cherry_picker directory. Can I please have an option to point cp to an existing clone?
The text was updated successfully, but these errors were encountered: