idyntree icon indicating copy to clipboard operation
idyntree copied to clipboard

Document how to install idyntree from pip, and how to upload a new release to PyPI

Open traversaro opened this issue 3 years ago • 2 comments

@diegoferigo already shared with me this two piece of info, but I keep forgetting where I have them.

traversaro avatar Nov 19 '20 07:11 traversaro

Installation

# Optional: create and enable first a virtualenv, then:
sudo apt install libxml2-dev libassimp-dev libeigen3-dev coinor-libipopt-dev swig
pip3 install idyntree

Note: if a virtualenv is enabled, you can also use pip and python instead of pip3 and python3. They are symlinks.

Packaging

From the folder of the cloned repo:

# Create the source distribution
python3 setup.py sdist

# Install twine
pip3 install twine

# Upload to PyPI
twine upload dist/idyntree-<ver>.tar.gz

diegoferigo avatar Nov 19 '20 08:11 diegoferigo

After https://github.com/robotology/idyntree/pull/774, the supported platforms where we distribute wheels no longer need to install the system dependencies since all the necessary files are included in the wheel.

Currently only linux distributions with python 3.8 are supported #774.

diegoferigo avatar Nov 20 '20 13:11 diegoferigo