Skip to content
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

Allow installing in any directory #43

Closed
dclong opened this issue Nov 18, 2018 · 5 comments
Closed

Allow installing in any directory #43

dclong opened this issue Nov 18, 2018 · 5 comments
Labels
bug category: installation Issues related to installing/building/managing the kernel.

Comments

@dclong
Copy link

dclong commented Nov 18, 2018

Currently one must run python3 install.py --sys-prefix in the directory containing install.py to install the package. It makes things a little bit easier if we can installing the package by specifying the absolute path of install.py.

@SpencerPark SpencerPark added enhancement category: installation Issues related to installing/building/managing the kernel. labels Nov 19, 2018
@SpencerPark
Copy link
Owner

Hi @dclong, underneath that install script uses the same API as jupyter's kernelspec app. You can use --sys-prefix but also supported is --user and --prefix options. See python3 install.py -h for more info on those.

--user will install to the per user jupyter data dir. --prefix allows specifying a location (intended to be a conda prefix but is not a requirement) in which the kernel is installed in PREFIX/share/jupyter/kernels/. These might be enough for your use case but I do also see the benefit of specifying some arbitrary directory.

I'll open up an issue in the gradle plugin repo which is what generates the script but we can keep this open for tracking. Thanks!

@dclong
Copy link
Author

dclong commented Nov 21, 2018

@SpencerPark Thank you for your quick response. I'm asking to support installing IJava by running the following command in a directory that is the parent directory of install.py.

python3 /path_to/install.py --sys-prefix

@SpencerPark
Copy link
Owner

Ah, my apologies, I read things too fast. Regardless we might get a new feature from the installer out of it :) This issue makes even more sense now and is definitely something that needs fixing. I would consider this a bug. Thanks.

@SpencerPark
Copy link
Owner

Alright this is fixed in the installer plugin and updated here. As of the next release the installer will be able to be run from anywhere as you have suggested python3 /path_to/install.py --sys-prefix.

We can keep this open until then.

@dclong
Copy link
Author

dclong commented Nov 27, 2018

@SpencerPark Thank you! Looking forward to the next release!

@SpencerPark SpencerPark added pending release A marker for issue that are resolved and waiting to be shipped in the next release. and removed pending release A marker for issue that are resolved and waiting to be shipped in the next release. labels May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: installation Issues related to installing/building/managing the kernel.
Projects
None yet
Development

No branches or pull requests

2 participants