These are chat archives for ipython/ipython

18th
Nov 2015
epifanio
@epifanio
Nov 18 2015 05:26
Hi, how should I modify this setup.py to handle non root installation? at the moment it tryes to copy the JS code in /usr/local/share/jupyter/nbextensions/ and fails to install if not ran as root. I’d like to add the option to install the files in /home/$USER/.local/jupyter/nbextensions or /home/$USER/.jupyter/nbextensions.
This the src code for the setup.py (it is a fork, I’m trying to study the code),
it uses jupyter-pip.
I started to add on top of setup.py this code borrowed from ipython-contrib/IPython-notebook-extensions/setup.py … but seems that who is handling all the installation is jupyter-pip .. so i got confused on how to continue and tell jupyter-pip which path needs to be preferred (/usr/local/jupyter if accessible, /home/$USER/.xxx/ if not).