The following steps assume that supported venv
is activated
-
Installing dependencies
pip install -r requirements.txt
-
(Re)building the extension
- this command builds the extension:
python setup.py build_ext --inplace
- this command builds the extension:
-
Running tests
python -m pytest
in the root of the project
- (on Ubuntu) install gcc
apt-get install gcc
- to get a compiler, I'm now installing a "Visual Studio Community" from here: https://visualstudio.microsoft.com/vs/community/
- after launching the installer, from the many options it gives me, I only choose "development of classical apps", the expected installation size is terrifying 7Gbs.
Git bash comes with git for windows
These two are needed to download VSTSDK. To install them into the mingw supplied withing git bash, I followed this instruction here: below is an extract from that doc:
Keep in mind you can easy add
make
, but it doesn't come packaged with all the standard UNIX build toolchain--so you will have to ensure those are installed and on your PATH, or you will encounter endless error messages.
- Go to ezwinports.
- Download
make-4.1-2-without-guile-w32-bin.zip
(get the version without guile).- Extract zip.
- Copy the contents to your
Git\mingw64\
merging the folders, but do NOT overwrite/replace any existing files.
- Download the latest wget binary for windows from eternallybored (they are available as a zip with documentation, or just an exe)
- If you downloaded the zip, extract all (if windows built in zip utility gives an error, use 7-zip).
- Rename the file
wget64.exe
towget.exe
if necessary.- Move
wget.exe
to yourGit\mingw64\bin\
.
Essentially, it all comes down to copying a few additional files into c:\Program Files\Git\mingw64
as shown on the screenshots below:
Download from here https://www.python.org/downloads/
and install python 3.7, 3.8, 3.9
In my case, python binaries end up here: C:\Users\user\AppData\Local\Programs\Python\
create venvs:
/c/Users/user/AppData/Local/Programs/Python/Python37/python.exe -m venv /c/home/em/test_python/venv37
/c/Users/user/AppData/Local/Programs/Python/Python38/python.exe -m venv /c/home/em/test_python/venv38
/c/Users/user/AppData/Local/Programs/Python/Python39/python.exe -m venv /c/home/em/test_python/venv39
- launch git-bash
- Activate venv:
source venv/Scripts/activate
- finally, build
python setup.py build_ext --inplace