-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Install Jupyter kernel in the correct prefix #25546
Comments
Branch: u/jdemeyer/ticket/25546 |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:4
That looks like it may greatly simplify my life. I have still one issue about the current setup but it is comparatively minor - I think the code installing the kernel should live under |
comment:5
What is the |
comment:6
Replying to @timokau:
It's a standard distutils command it is mentioned on this page for example https://wiki.python.org/moin/Distutils/Tutorial. |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @timokau:
I don't know whether it's documented, but it's the directory where |
comment:9
Replying to @kiwifb: I think that page takes about about |
comment:10
Replying to @jdemeyer:
I can't even find the default value of that variable by grepping through the distutils source. However as long as it is relative to |
comment:11
Tested. It works for me. |
Reviewer: Vincent Klein |
Changed branch from u/jdemeyer/ticket/25546 to |
The Sage Jupyter kernel is unconditionally installed in
sys.prefix
. However, this should instead be theinstall_data
directory. This defaults to the installation prefix, which in turn defaults tosys.prefix
. So the default won't change, but it allows customization.The reason for choosing
install_data
is to be compatible with other Jupyter packages, which use thedata_files
option tosetup()
for installing Jupyter files (see for example https://github.com/jupyter-widgets/ipywidgets/blob/master/widgetsnbextension/setup.py#L203).Those files are installed in the
install_data
directory.CC: @timokau @kiwifb
Component: distribution
Author: Jeroen Demeyer
Branch/Commit:
ad0ee29
Reviewer: Vincent Klein
Issue created by migration from https://trac.sagemath.org/ticket/25546
The text was updated successfully, but these errors were encountered: