Spaces:
Sleeping
Sleeping
Fix incremental install tests
Browse files
pysr/test/incremental_install_simulator.dockerfile
CHANGED
|
@@ -33,13 +33,14 @@ RUN python3 -m pip install --upgrade pip
|
|
| 33 |
# Get PySR source:
|
| 34 |
WORKDIR /pysr
|
| 35 |
ADD ./requirements.txt /pysr/requirements.txt
|
| 36 |
-
RUN python3 -m pip install -r /pysr/requirements.txt
|
| 37 |
|
|
|
|
| 38 |
ADD ./setup.py /pysr/setup.py
|
| 39 |
ADD ./pysr/ /pysr/pysr/
|
| 40 |
|
| 41 |
# First install of PySR:
|
| 42 |
-
RUN python3 -m pip install .
|
| 43 |
RUN python3 -c 'import pysr'
|
| 44 |
|
| 45 |
# Change Python version:
|
|
@@ -48,5 +49,4 @@ RUN python3 -m pip install --upgrade pip
|
|
| 48 |
|
| 49 |
# Second install of PySR:
|
| 50 |
RUN python3 -m pip install .
|
| 51 |
-
RUN
|
| 52 |
-
RUN python3 -c 'import pysr'
|
|
|
|
| 33 |
# Get PySR source:
|
| 34 |
WORKDIR /pysr
|
| 35 |
ADD ./requirements.txt /pysr/requirements.txt
|
| 36 |
+
RUN python3 -m pip install --no-cache-dir -r /pysr/requirements.txt
|
| 37 |
|
| 38 |
+
ADD ./pyproject.toml /pysr/pyproject.toml
|
| 39 |
ADD ./setup.py /pysr/setup.py
|
| 40 |
ADD ./pysr/ /pysr/pysr/
|
| 41 |
|
| 42 |
# First install of PySR:
|
| 43 |
+
RUN python3 -m pip install --no-cache-dir .
|
| 44 |
RUN python3 -c 'import pysr'
|
| 45 |
|
| 46 |
# Change Python version:
|
|
|
|
| 49 |
|
| 50 |
# Second install of PySR:
|
| 51 |
RUN python3 -m pip install .
|
| 52 |
+
RUN python3 -c 'import pysr' && python3 -c 'from pysr.sr import jl; jl.seval("@assert VERSION < v\"1.9\"")'
|
|
|