Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patch for https://bugs.python.org/issue42015 (which affects pybind11) #402

Merged
Merged
1 change: 0 additions & 1 deletion .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .ci_support/linux_64_target_platformlinux-64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pin_run_as_build:
zlib:
max_pin: x.x
python:
- '3.8'
- '3.9'
readline:
- '8.0'
sqlite:
Expand All @@ -54,5 +54,8 @@ tk:
- '8.6'
xz:
- '5.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
9 changes: 6 additions & 3 deletions .ci_support/linux_aarch64_target_platformlinux-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bzip2:
c_compiler:
- gcc
c_compiler_version:
- '7.5'
- '7'
cdt_arch:
- aarch64
cdt_name:
Expand All @@ -17,7 +17,7 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '7.5'
- '7'
docker_image:
- condaforge/linux-anvil-aarch64
libffi:
Expand Down Expand Up @@ -49,7 +49,7 @@ pin_run_as_build:
zlib:
max_pin: x.x
python:
- '3.8'
- '3.9'
readline:
- '8.0'
sqlite:
Expand All @@ -60,5 +60,8 @@ tk:
- '8.6'
xz:
- '5.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
5 changes: 4 additions & 1 deletion .ci_support/linux_ppc64le_target_platformlinux-ppc64le.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pin_run_as_build:
zlib:
max_pin: x.x
python:
- '3.8'
- '3.9'
readline:
- '8.0'
sqlite:
Expand All @@ -50,5 +50,8 @@ target_platform:
- linux-ppc64le
xz:
- '5.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
5 changes: 4 additions & 1 deletion .ci_support/osx_64_target_platformosx-64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pin_run_as_build:
zlib:
max_pin: x.x
python:
- '3.8'
- '3.9'
readline:
- '8.0'
sqlite:
Expand All @@ -56,5 +56,8 @@ tk:
- '8.6'
xz:
- '5.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
5 changes: 4 additions & 1 deletion .ci_support/osx_arm64_target_platformosx-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pin_run_as_build:
zlib:
max_pin: x.x
python:
- '3.8'
- '3.9'
readline:
- '8.0'
sqlite:
Expand All @@ -56,5 +56,8 @@ tk:
- '8.6'
xz:
- '5.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
2 changes: 1 addition & 1 deletion .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pin_run_as_build:
sqlite:
max_pin: x
python:
- '3.8'
- '3.9'
sqlite:
- '3'
target_platform:
Expand Down
1 change: 0 additions & 1 deletion .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 19 additions & 7 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .scripts/run_docker_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions recipe/build_base.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ if "%ARCH%"=="64" (
set BUILD_PATH=win32
)

set PY_VER=39
for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do (
set "VERNODOTS=%%i%%j"
)

:: Make sure the "python" value in conda_build_config.yaml is up to date.
for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do (
if NOT "%PY_VER%"=="%%i.%%j" exit 1
)

set "OPENSSL_DIR=%LIBRARY_PREFIX%"
set "SQLITE3_DIR=%LIBRARY_PREFIX%"
Expand Down Expand Up @@ -52,15 +59,15 @@ if errorlevel 1 exit 1
cd ..

:: Populate the root package directory
for %%x in (python%PY_VER%%_D%.dll python3%_D%.dll python%_D%.exe pythonw%_D%.exe venvlauncher%_D%.exe venvwlauncher%_D%.exe) do (
for %%x in (python%VERNODOTS%%_D%.dll python3%_D%.dll python%_D%.exe pythonw%_D%.exe venvlauncher%_D%.exe venvwlauncher%_D%.exe) do (
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x (
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x %PREFIX%
) else (
echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x does not exist"
)
)

for %%x in (python%_D%.pdb python%PY_VER%%_D%.pdb pythonw%_D%.pdb) do (
for %%x in (python%_D%.pdb python%VERNODOTS%%_D%.pdb pythonw%_D%.pdb) do (
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x (
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x %PREFIX%
) else (
Expand Down Expand Up @@ -142,7 +149,7 @@ if errorlevel 1 exit 1

:: Populate the libs directory
if not exist %PREFIX%\libs mkdir %PREFIX%\libs
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%PY_VER%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%PY_VER%%_D%.lib %PREFIX%\libs\
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib %PREFIX%\libs\
if errorlevel 1 exit 1
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib %PREFIX%\libs\
if errorlevel 1 exit 1
Expand Down
3 changes: 3 additions & 0 deletions recipe/build_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ fi
ABIFLAGS=${DBG}
VERABI=${VER}${DBG}

# Make sure the "python" value in conda_build_config.yaml is up to date.
test "${PY_VER}" = "${VER}"

# This is the mechanism by which we fall back to default gcc, but having it defined here
# would probably break the build by using incorrect settings and/or importing files that
# do not yet exist.
Expand Down
2 changes: 1 addition & 1 deletion recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python:
- 3.8
- 3.9
c_compiler: # [win]
- vs2017 # [win]
cxx_compiler: # [win]
Expand Down
4 changes: 3 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set ver2 = '.'.join(version.split('.')[0:2]) %}
{% set ver2nd = ''.join(version.split('.')[0:2]) %}
{% set ver3nd = ''.join(version.split('.')[0:3]) %}
{% set build_number = 3 %}
{% set build_number = 4 %}

# Sanitize build system env. var tweak parameters
# (passed to the build scripts via script_env).
Expand Down Expand Up @@ -80,6 +80,7 @@ source:
- patches/0030-gh21564.patch
- patches/0031-gh21228.patch
- patches/0032-Fix-TZPATH-on-windows.patch
- patches/0033-gh22674.patch

# TODO :: Depend on our own packages for these:
- url: https://github.com/python/cpython-source-deps/archive/xz-5.2.2.zip # [win]
Expand Down Expand Up @@ -352,3 +353,4 @@ extra:
- pelson
- ocefpaf
- scopatz
- mbargull
Loading