Skip to content

Commit d29fb91

Browse files
Copilotjpfeuffer
andcommitted
Fix: Only use --pre for latest, remove pyopenms from requirements.txt to avoid reinstall
Co-authored-by: jpfeuffer <8102638+jpfeuffer@users.noreply.github.com>
1 parent 61cf87a commit d29fb91

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Once the environment is active, you can install all required python packages usi
2323

2424
cd <pyOpenMS_dir>/docs
2525
pip install -r requirements.txt
26+
python install_pyopenms.py
2627

2728

2829
To build the docs run the line below (works on all operating systems), but make sure that your working dir is `<pyOpenMS_dir>/docs` (see above):

docs/install_pyopenms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def install_pyopenms(version):
5656
# Build pip install command
5757
cmd = [
5858
sys.executable, "-m", "pip", "install",
59-
"--extra-index-url", "https://pypi.cs.uni-tuebingen.de/simple/",
60-
"--pre" # Allow pre-release versions
59+
"--extra-index-url", "https://pypi.cs.uni-tuebingen.de/simple/"
6160
]
6261

6362
if version == 'latest':
64-
print("Installing latest version of pyopenms")
63+
print("Installing latest version of pyopenms (including pre-releases)")
64+
cmd.append("--pre") # Allow pre-release versions only for latest
6565
cmd.append("pyopenms")
6666
else:
6767
print(f"Installing pyopenms=={version}")

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ ipython
99
pygments-lexer-pseudocode
1010

1111
# Note: pyopenms is installed via docs/install_pyopenms.py script
12-
# which reads the version from READTHEDOCS_VERSION_NAME environment variable
12+
# On ReadTheDocs: uses READTHEDOCS_VERSION_NAME to install the correct version (--pre only for "latest")
13+
# For local builds: run "python docs/install_pyopenms.py" manually after installing requirements

0 commit comments

Comments
 (0)