Steps to execute:
- The Python OJAI client builds with only Python 2.7 or higher. Check your Python version by running:
python --version
- Check that you have installed pip:
pip -V
- Next, install the following libraries, if not already installed.
pip install twine wheel setuptools
If you encounter issues installing setuptools, run the following command:sudo -H pip install setuptools --upgrade
- Make sure that you are in the project root directory:
ls -l setup.py
- Run the following command:
python setup.py bdist_wheel
- Upon completion, the command creates the following directories:
- build
- dist
- maprdb_python_client.egg-info
If you want to add the package you have created locally in your project, copy dist/maprdb_python_client* to your project.
To add the package in your virtual environment, run:
pip install maprdb_python_client-1.1-py2-none-any.whl