Skip to content

Commit 03dc210

Browse files
committed
MAINT: remove support for building with setup.py
With Python 3.12 available and the Meson build mature, we don't need this any longer. The last reason we kept this around is to allow conda-forge to use it on Windows. That isn't possible anymore with Python 3.12, and conda-forge builds on Windows with Meson are now close enough to the finish line (a first build with Clang + Flang managed to create a wheel, still work to do though).
1 parent f6b3680 commit 03dc210

File tree

64 files changed

+100
-3575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+100
-3575
lines changed

.gitattributes

-49
Original file line numberDiff line numberDiff line change
@@ -11,70 +11,21 @@ ci/* export-ignore
1111
*.yml export-ignore
1212
*.yaml export-ignore
1313
.mailmap export-ignore
14-
MANIFEST.in export-ignore
15-
tools/ci/* export-ignore
1614

1715

1816
# Dealing with line endings
1917
###########################
2018

2119
* text=auto
22-
tools/win32/build_scripts/nsis_scripts/*.nsi.in eol=crlf
2320

2421
# Don't want to convert line endings of this file, causes test failure on
2522
# Windows
2623
scipy/io/matlab/tests/data/japanese_utf8.txt binary
2724

28-
# Autogenerated files
29-
scipy/special/_ufuncs_cxx.pyx binary
30-
scipy/special/_ufuncs_cxx.pxd binary
31-
scipy/special/_ufuncs.pyx binary
32-
scipy/special/_ufuncs_defs.h binary
33-
scipy/special/cython_special.pxd binary
34-
scipy/special/cython_special.pyx binary
35-
scipy/linalg/_blas_subroutine_wrappers.f binary
36-
scipy/linalg/_blas_subroutines.h binary
37-
scipy/linalg/_lapack_subroutine_wrappers.f binary
38-
scipy/linalg/_lapack_subroutines.h binary
39-
scipy/linalg/cython_blas.pxd binary
40-
scipy/linalg/cython_blas.pyx binary
41-
scipy/linalg/cython_blas_signatures.txt binary
42-
scipy/linalg/cython_lapack.pxd binary
43-
scipy/linalg/cython_lapack.pyx binary
44-
scipy/linalg/cython_lapack_signatures.txt binary
45-
46-
# SWIG-generated files
47-
scipy/sparse/sparsetools/bsr.py binary
48-
scipy/sparse/sparsetools/bsr_wrap.cxx binary
49-
scipy/sparse/sparsetools/coo.py binary
50-
scipy/sparse/sparsetools/coo_wrap.cxx binary
51-
scipy/sparse/sparsetools/csc.py binary
52-
scipy/sparse/sparsetools/csc_wrap.cxx binary
53-
scipy/sparse/sparsetools/csr.py binary
54-
scipy/sparse/sparsetools/csr_wrap.cxx binary
55-
scipy/sparse/sparsetools/dia.py binary
56-
scipy/sparse/sparsetools/dia_wrap.cxx binary
57-
scipy/sparse/sparsetools/csgraph.py binary
58-
scipy/sparse/sparsetools/csgraph_wrap.cxx binary
59-
6025
# Numerical data files
6126
scipy/special/tests/data/*.txt binary
6227
scipy/special/tests/data/*/*.txt binary
6328
scipy/special/tests/data/*/*/*.txt binary
6429

65-
# SWIG-generated files
66-
scipy/sparse/sparsetools/bsr.py binary
67-
scipy/sparse/sparsetools/bsr_wrap.cxx binary
68-
scipy/sparse/sparsetools/coo.py binary
69-
scipy/sparse/sparsetools/coo_wrap.cxx binary
70-
scipy/sparse/sparsetools/csc.py binary
71-
scipy/sparse/sparsetools/csc_wrap.cxx binary
72-
scipy/sparse/sparsetools/csr.py binary
73-
scipy/sparse/sparsetools/csr_wrap.cxx binary
74-
scipy/sparse/sparsetools/dia.py binary
75-
scipy/sparse/sparsetools/dia_wrap.cxx binary
76-
scipy/sparse/sparsetools/csgraph.py binary
77-
scipy/sparse/sparsetools/csgraph_wrap.cxx binary
78-
7930
# Release notes, reduce number of conflicts.
8031
doc/release/*.rst merge=union

.github/workflows/windows.yml

-61
Original file line numberDiff line numberDiff line change
@@ -166,64 +166,3 @@ jobs:
166166
# run full test suite
167167
pytest --pyargs scipy
168168
169-
170-
#############################################################################
171-
fast_setup:
172-
name: cp310 (setup.py bdist_wheel)
173-
if: "github.repository == 'scipy/scipy' || github.repository == ''"
174-
runs-on: windows-2019
175-
steps:
176-
- name: Checkout
177-
uses: actions/checkout@v3
178-
with:
179-
submodules: recursive
180-
- name: Setup Python
181-
uses: actions/setup-python@v4
182-
with:
183-
python-version: '3.10'
184-
cache: 'pip'
185-
cache-dependency-path: 'environment.yml'
186-
187-
- name: Win_amd64 - install rtools
188-
run: |
189-
# mingw-w64
190-
choco install rtools -y --no-progress --force --version=4.0.0.20220206
191-
echo "c:\rtools40\ucrt64\bin;" >> $env:GITHUB_PATH
192-
193-
- name: Install OpenBLAS
194-
shell: bash
195-
run: |
196-
set -xe
197-
bash tools/wheels/cibw_before_build_win.sh .
198-
199-
# force static linking
200-
pushd /c/opt/64/lib
201-
rm *.dev.a *.dll.a *.lib
202-
popd
203-
204-
# site.cfg.template currently distributed with
205-
# multibuild-wheels-staging/openblas-libs
206-
cp /c/opt/64/site.cfg.template site.cfg
207-
sed -i 's/{openblas_root}/c:\\opt/g' site.cfg
208-
209-
- name: pip-packages
210-
run: |
211-
# pyproject.toml currently states this numpy minimum version.
212-
python -m pip install --upgrade pip "setuptools==59.6.0" wheel
213-
python -m pip install "cython<3.0" numpy==1.22.4 pybind11 pythran pytest pooch hypothesis
214-
215-
- name: Build
216-
run: |
217-
cp _setup.py setup.py
218-
python setup.py bdist_wheel
219-
220-
# Vendor openblas.dll and the DLL's it depends on into the wheel
221-
$env:wheel_name=Get-ChildItem -Path dist/* -Include *.whl
222-
delvewheel repair --add-path c:\opt\openblas\openblas_dll -w dist $env:wheel_name
223-
224-
python -m pip install $env:wheel_name
225-
226-
- name: Test
227-
run: |
228-
cd $RUNNER_TEMP
229-
pytest --pyargs scipy -m "not slow"

MANIFEST.in

-34
This file was deleted.

0 commit comments

Comments
 (0)