Building pip package from source

Hi there,

I’d like to build MXNet from source on macOS as a pip package that I can later install in different virtual environment. Building from source works. Then the instruction tells me to go to the python folder and run
$ pip install -e .
but this installs MXNet in the system environment. What do I have to do to build a pip package that I can reuse later?

Cheers,
Blake

Have a look at these scripts:

They show how you can do a static build that can be easily distributed, that’s what we use for pip distribution.

Effectively to build a wheel from reading this script, I think you mostly only needs to run:
python setup.py bdist_wheel in the python folder of mxnet

1 Like

This is perfect!
Thanks