Skip to content

Fix docplex upgrade with cplex installed to user site dir#33

Open
lpsinger wants to merge 1 commit intoIBMDecisionOptimization:masterfrom
lpsinger:docplex-upgrade-user-site-packages
Open

Fix docplex upgrade with cplex installed to user site dir#33
lpsinger wants to merge 1 commit intoIBMDecisionOptimization:masterfrom
lpsinger:docplex-upgrade-user-site-packages

Conversation

@lpsinger
Copy link
Contributor

If the cplex package has been installed to a directory other than the system site-packages dir, then docplex upgrade would fail. This is especially problematic for the common use case where cplex has been installed to the user site-packages dir.

Teach docplex upgrade to locate the cplex installation by using Python's package metadata machinery, so that it works when cplex has been installed to the system site packages directory, the user site packages directory, or any other directory on the Python path.

If the `cplex` package has been installed to a directory other
than the system site-packages dir, then `docplex upgrade` would
fail. This is especially problematic for the common use case where
`cplex` has been installed to the user site-packages dir.

Teach `docplex upgrade` to locate the `cplex` installation by using
Python's package metadata machinery, so that it works when `cplex`
has been installed to the system site packages directory, the user
site packages directory, or any other directory on the Python path.
@lpsinger
Copy link
Contributor Author

Note that this will also fix #27. CC @Holt59.

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.

1 participant