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

make an installation script for Windows #1

Open
mwermelinger opened this issue Feb 5, 2023 · 2 comments
Open

make an installation script for Windows #1

mwermelinger opened this issue Feb 5, 2023 · 2 comments
Labels
priority: high status: help wanted Extra attention is needed type: feature New feature

Comments

@mwermelinger
Copy link
Member

mwermelinger commented Feb 5, 2023

The Unix installation script needs to be translated to a Windows batch file that does the same as described at the start of createnv.sh, except that it doesn't need to detect the Unix shell.

It's unclear to me if the batch script needs to run under PowerShell: according to https://docs.python.org/3.10/library/venv.html it seems so, but PowerShell isn't mentioned in https://packaging.python.org/en/latest/tutorials/installing-packages.

As I'm not a Windows user, this script has to be written and tried out by someone else.

@mwermelinger mwermelinger added priority: high status: help wanted Extra attention is needed type: feature New feature labels Feb 5, 2023
@mwermelinger
Copy link
Member Author

It's probably best to require Windows users to install WSL, so that everyone uses a Unix environment , which greatly simplifies software installation and instructions, and helping students on forums. Furthermore, with WSL, everyone can have pytype and check method calls in the TMAs.

There seem to be occasional issues with internet access from WSL, so it should be tested with external links from the M269 book.

@mwermelinger
Copy link
Member Author

One needs to figure out how Windows users should install Python 3.10, so that the creation of the virtual environment under WSL works. There seems to be 3 possibilities to install Python

  • in WSL, install from the source code downloaded from python.org
  • in WSL, use the Ubuntu package manager
  • download the 64-bit Windows installer (or 32-bit installer if using that version of Windows 10) from python.org and run it

The third option is best and easiest if python3.10 in the script can invoke the Windows installation, otherwise it probably will have to be the second option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high status: help wanted Extra attention is needed type: feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant