Skip to content

Recompiling PyScipOPT after extending the interface #787

Answered by jgroenheide
jgroenheide asked this question in Q&A
Discussion options

You must be logged in to vote

From what I can tell, the only way to extend the interface is by compiling it from source.

I performed the following steps on Windows.

  1. Clone the repository to any local directory.
  2. Edit the System environment variables by adding SCIPOPTDIR=/path/to/scip/install/dir as explained in INSTALL.md
    (I used Windows' built-in System Properties window for this.)
  3. Open the virtual environment or project (with the virtual environment enabled) where you want to install the extended version of PySCIPOpt.
  4. Navigate to the cloned repository using cd and install the package with python -m pip install .
  5. Now you can make changes to the scip.pxd and scip.pxi files. I used VS Code for this without issues.
  6. Recom…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@jgroenheide
Comment options

@Joao-Dionisio
Comment options

@jgroenheide
Comment options

@Joao-Dionisio
Comment options

Comment options

You must be logged in to vote
1 reply
@Joao-Dionisio
Comment options

Answer selected by jgroenheide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants