Building pip package from source

osx
how-to

#1

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


#2

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


#3

This is perfect!
Thanks