Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make setuptools a required dependency, fixes #295. #296

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading