Firstly,ensure the terminal path is .\src
Then, use the command below to compile the .py files to .pyd files
python setup.py build_ext --inplace
Firstly,ensure the terminal path is the root folder
python -m buildthen it will create a folder dist and a folder mypackage.egg-info
- there are
*.tar.gzand*.whlin the folderdist
You have to ensure the internet is fine when running this command.Because it needs internet to install the packages to the isolated environment,according to the output message below.
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools>=42, wheel) Makefile provides the commands below
make bin: build into binary filesmake build: build the wheel filemake all: run the comands at one time. When it completes, we can find the wheel in the folderdistmake clean_temp: clean all the temporary filesmake clean: clean all the generated files- Others: see
Makefile