Skip to content

Commit

Permalink
Merge pull request #296 from moorepants/distutils
Browse files Browse the repository at this point in the history
Make setuptools a required dependency, fixes #295.
  • Loading branch information
moorepants authored Jan 5, 2025
2 parents cbea1dc + 4272c01 commit 8ba9041
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ The required dependencies are as follows:
- numpy >= 1.19.0
- python 3.9-3.13
- scipy >= 1.5.0
- setuptools
- sympy >= 1.6.0

The optional dependencies are as follows:
Expand Down Expand Up @@ -136,7 +137,7 @@ set the ``LD_LIBRARY_PATH`` so that you can link to Ipopt when installing

Once Ipopt is installed and accessible, install conda then create an environment::

$ conda create -n opty-custom -c conda-forge cython numpy pip scipy sympy
$ conda create -n opty-custom -c conda-forge cython numpy pip scipy setuptools sympy
$ source activate opty-custom
(opty-custom)$ pip install cyipopt # this will compile cyipopt against the available ipopt
(opty-custom)$ pip install opty
Expand All @@ -145,7 +146,7 @@ If you want to develop opty, create a conda environment with all of the
dependencies installed::

$ conda config --add channels conda-forge
$ conda create -n opty-dev python sympy numpy scipy cython ipopt cyipopt matplotlib pytables pydy pandas pytest sphinx sphinx-gallery numpydoc
$ conda create -n opty-dev python sympy numpy scipy cython ipopt cyipopt matplotlib pytables pydy pandas pytest setuptools sphinx sphinx-gallery numpydoc
$ source activate opty-dev

Next download the opty source files and install with::
Expand Down
1 change: 1 addition & 0 deletions opty-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- pytest-cov
- python
- scipy >=1.5.0
- setuptools
- sphinx
- sphinx-gallery
- sympy >=1.13 # version required for the docs
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'cython>=0.29.19',
'numpy>=1.19.0',
'scipy>=1.5.0',
'setuptools', # provides distutils for Python >=3.13
'sympy>=1.6.0',
],
extras_require={
Expand Down

0 comments on commit 8ba9041

Please sign in to comment.