|
25 | 25 | branches:
|
26 | 26 | - main
|
27 | 27 | - 1.5.x
|
28 |
| - - 1.4.x |
29 | 28 | pull_request:
|
30 | 29 | branches:
|
31 | 30 | - main
|
32 | 31 | - 1.5.x
|
33 |
| - - 1.4.x |
34 | 32 | paths-ignore:
|
35 | 33 | - "doc/**"
|
36 | 34 |
|
@@ -77,18 +75,34 @@ jobs:
|
77 | 75 | python -m pip install --upgrade pip setuptools wheel
|
78 | 76 | python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
|
79 | 77 | python -m pip install git+https://github.com/nedbat/coveragepy.git
|
80 |
| - python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 pytest-xdist pytest-cov pytest-asyncio>=0.17 |
| 78 | + python -m pip install python-dateutil pytz cython |
| 79 | + # TODO: update when upstream releases fixes |
| 80 | + python -m pip install "git+https://github.com/mesonbuild/meson.git@master" |
| 81 | + python -m pip install "git+https://github.com/FFY00/meson-python.git@main" |
| 82 | + python -m pip install hypothesis==6.52.1 pytest>=6.2.5 pytest-xdist pytest-cov pytest-asyncio>=0.17 |
81 | 83 | python -m pip list
|
82 | 84 |
|
83 |
| - # GH 47305: Parallel build can cause flaky ImportError from pandas/_libs/tslibs |
| 85 | + # Sigh, someone (numpy?) is depending on mingw, which pandas doesn't compile with. |
| 86 | + # Also, meson doesn't detect visual c++ unless cl.exe is in path. |
| 87 | + # TODO: File a bug with meson about this. |
84 | 88 | - name: Build Pandas
|
| 89 | + if : ${{ runner.os != 'Windows' }} |
85 | 90 | run: |
|
86 |
| - python setup.py build_ext -q -j1 |
87 |
| - python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index |
| 91 | + python3 -m pip install . --no-build-isolation -v |
| 92 | + shell: bash -el {0} |
| 93 | + |
| 94 | + - name: Build Pandas (Windows) |
| 95 | + if: ${{ runner.os == 'Windows' }} |
| 96 | + run: | |
| 97 | + call micromamba activate test |
| 98 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" |
| 99 | + python -m pip install . --no-build-isolation -v |
| 100 | + shell: cmd /C call {0} |
88 | 101 |
|
89 | 102 | - name: Build Version
|
90 | 103 | run: |
|
91 |
| - python -c "import pandas; pandas.show_versions();" |
| 104 | + # Can't import pandas from the source directory |
| 105 | + cd .. && python -c "import pandas; pandas.show_versions();" |
92 | 106 |
|
93 | 107 | - name: Test
|
94 | 108 | uses: ./.github/actions/run-tests
|
0 commit comments