Skip to content

Move cplex and docplex to pypi-only installs#3984

Merged
mrmundt merged 3 commits into
Pyomo:mainfrom
mrmundt:cplex-update
Jun 24, 2026
Merged

Move cplex and docplex to pypi-only installs#3984
mrmundt merged 3 commits into
Pyomo:mainfrom
mrmundt:cplex-update

Conversation

@mrmundt

@mrmundt mrmundt commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes ... our infrastructure

Summary/Motivation:

Something has been up on our linux/conda build for a minute, attributed to a new release on conda. Per Cplex official docs: "The CPLEX and CP Optimizer Python interfaces are no longer delivered inside CPLEX Optimization Studio, but can be installed directly from PyPI." Also... They are also moving away from conda and will remove support in a future release. So time to rip off the bandaid.

Changes proposed in this PR:

  • Move cplex and docplex to be pypi-only installs.

AI-Use Disclosure

  • AI tools were NOT used during the preparation of this PR

or

  • AI tools contributed to the development of this PR

    • AI tools generated documentation (including the PR description/comments, code comments, and/or Sphinx documentation)
    • AI tools generated tests (baselines, examples, and/or code)
    • AI tools generated code (apart from tests)

    Review process (select ONE):

    • Rewritten: All AI-generated content was rewritten by me before being committed.
    • Reviewed/verified: I retained AI-generated content and verified it before committing. Verification included (as applicable):
      • Ran the code and fixed issues
      • Added and ran tests
      • Checked correctness/logic of code and tests
      • Checked for alignment with the contribution guide
      • Considered security implications
    • As-is: AI-generated content was commited directly to the repository

Notes for reviewers (optional):

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@blnicho blnicho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update the solver installation table (https://pyomo.readthedocs.io/en/stable/getting_started/solvers.html) to discourage users from trying to install CPLEX with conda.

@jsiirola jsiirola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change in scoping, then this should be OK

Comment thread .github/workflows/test_branches.yml Outdated
Comment thread .github/workflows/test_pr_and_main.yml Outdated
@mrmundt mrmundt requested a review from jsiirola June 24, 2026 14:38
@mrmundt

mrmundt commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

We should also update the solver installation table (https://pyomo.readthedocs.io/en/stable/getting_started/solvers.html) to discourage users from trying to install CPLEX with conda.

Done!

@mrmundt mrmundt merged commit 29f2b12 into Pyomo:main Jun 24, 2026
31 checks passed
@mrmundt mrmundt deleted the cplex-update branch June 24, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants