Skip to content

Allow --prefix to work #52

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

Merged
merged 7 commits into from
Oct 26, 2020
Merged

Allow --prefix to work #52

merged 7 commits into from
Oct 26, 2020

Conversation

dsblank
Copy link
Member

@dsblank dsblank commented Oct 17, 2020

This PR makes a change from sys.prefix to self.install_base to allow top-level command to set the --prefix or --install_dir.

This PR makes a change from `sys.prefix` to `self.prefix` to allow top-level command to set the prefix.

Still doesn't work with `--user`, but maybe that can be fixed in this PR too.
@dsblank
Copy link
Member Author

dsblank commented Oct 17, 2020

There are some things I don't understand about how setup works, removing files, --user, and --prefix. There may be more than what this PR does that is needed.

This takes care of:

* read-only dirs
* --prefix
* --install_dir
* --prefix
@dsblank
Copy link
Member Author

dsblank commented Oct 24, 2020

Ok, I think this is the correct fix.

Sometimes install_base just isn't set for some reason
There may be a third issue, but I can't figure it out. Perhaps this is just a hacky way to use seuptools, or setuptools has issues.
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073 blink1073 merged commit f94b6fd into jupyter:master Oct 26, 2020
@jasongrout
Copy link
Member

Thanks @dsblank!

@dsblank
Copy link
Member Author

dsblank commented Oct 26, 2020

Thanks folks, and welcome back @blink1073 ! Hope all is going well.

Re: this PR... there are probably better ways of handling setuptools, and maybe an expert will look at this someday. But it is working for me when using --prefix= now.

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

Successfully merging this pull request may close these issues.

3 participants