Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WinPython base read-only on a multi-user system, changes written to user directory? #637

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

Closed
kannes opened this issue May 15, 2018 · 7 comments

Comments

@kannes
Copy link

kannes commented May 15, 2018

I would like to use WinPython to provide many people with an good base and easy setup for Python development. Our computer systems are shared machines with user-specific things being saved on a network drive.

We want the WinPython base installation to be installed once per system but allow users to configure it and install packages. Those alterations should be stored in their user directory.

Is there a way to install WinPython system-wide as administrator and have it save all changes, installs and configuration on a specific, external path (e.g. the X: drive is the user's home directory, so "X:\WinPython" or something)? We might have some system variable mapped to that, I would have to check.

@stonebig
Copy link
Contributor

stonebig commented May 27, 2018

you can try to see what happen by removing# in subdirectory settings\winpython.ini.

[debug]
state = disabled
[environment]
HOME = %HOMEDRIVE%%HOMEPATH%\Documents\WinPython%WINPYVER%
JUPYTER_DATA_DIR = %HOME%
WINPYWORKDIR = %HOMEDRIVE%%HOMEPATH%\Documents\WinPython%WINPYVER%\Notebooks

Some users may have more real case experience (good or bad) on this, so you may ask on stackoverflow.

With the new JupyterLab thing, this strategy elaborated 2 years ago may be to re-engineer completely.

@stonebig
Copy link
Contributor

Maybe WinPython is not your easiest starting point for this.

@kannes
Copy link
Author

kannes commented Nov 6, 2018

We set it up successfully and have it used by ~30 students for several weeks now. :)

I documented what I did at https://gitlab.com/Hannes42/shared-winpython-base , hopefully this will be useful to others. For any questions don't hesitate to ask me or file issues over at that repo.

@kannes kannes closed this as completed Nov 6, 2018
@stonebig
Copy link
Contributor

stonebig commented Nov 6, 2018

well, I'm looking at your todo:

%WINPYDIR%\..\scripts\env.bat && cd/D %WINPYDIR% && %WINPYDIR%\python.exe -m pip wheel1.whl wheel2.whl ...
  • Spyder triggers Windows Defender at (first?) Launch: pyzo doesn't have this problem.

  • get rid of windows confirmation dialogs at launching the bat scripts: maybe you won't avoid that unless an initial ".bat" layer is on your user C drive, their "DESKTOP" for example.

@stonebig
Copy link
Contributor

hi @kannes ,

how is evolving your user setup today ?
what version of Python (and Python distro) are you using for your students ?
does it work on windows 7 ?

@kannes
Copy link
Author

kannes commented Apr 24, 2022

Hey @stonebig, thank you for asking! I have left the university where we used this setup long ago and have no idea what they are using nowadays.

@stonebig
Copy link
Contributor

ok, I have to setup a school with WinPython-3.6 or better.
I would have been curious on what they do now at your university.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants