Skip to content

Commit

Permalink
Merge pull request #51 from isuruf/zlib
Browse files Browse the repository at this point in the history
copy zlib.dll to PREFIX to support python 3.10
  • Loading branch information
ocefpaf committed Sep 30, 2021
2 parents d6e7fa1 + 6512563 commit 1f4d19c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 34 deletions.
3 changes: 3 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ copy %LIBRARY_LIB%\zlib.lib %LIBRARY_LIB%\zdll.lib || exit 1

:: Copy license file to the source directory so conda-build can find it.
copy %RECIPE_DIR%\license.txt %SRC_DIR%\license.txt || exit 1

:: python>=3.10 depend on this being at %PREFIX%
copy %LIBRARY_BIN%\zlib.dll %PREFIX%\zlib.dll || exit 1
70 changes: 36 additions & 34 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
{% set version = "1.2.11" %}

package:
name: zlib
version: {{ version }}
name: zlib
version: {{ version }}

source:
url: http://zlib.net/zlib-{{ version }}.tar.gz
sha256: c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
url: http://zlib.net/zlib-{{ version }}.tar.gz
sha256: c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1

build:
number: 1010
run_exports:
# mostly OK, but some scary symbol removal. Let's try for trusting them.
# https://abi-laboratory.pro/tracker/timeline/zlib/
- {{ pin_subpackage('zlib', max_pin='x.x') }}
number: 1011
run_exports:
# mostly OK, but some scary symbol removal. Let's try for trusting them.
# https://abi-laboratory.pro/tracker/timeline/zlib/
- {{ pin_subpackage('zlib', max_pin='x.x') }}

requirements:
build:
- cmake # [win]
- msinttypes # [win and vc<14]
# compiler on osx depends on zlib itself. Use the bootstrap compiler instead on osx
- {{ compiler('c') }}
- make # [unix]
build:
- cmake # [win]
- msinttypes # [win and vc<14]
# compiler on osx depends on zlib itself. Use the bootstrap compiler instead on osx
- {{ compiler('c') }}
- make # [unix]

test:
commands:
- test -f ${PREFIX}/lib/libz.a # [unix]
commands:
- test -f ${PREFIX}/lib/libz.a # [unix]
- test -f ${PREFIX}/lib/libz${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_BIN%\zlib.dll exit 1 # [win]
- if not exist %PREFIX%\zlib.dll exit 1 # [win]

about:
home: http://zlib.net/
# http://zlib.net/zlib_license.html
license: Zlib
summary: Massively spiffy yet delicately unobtrusive compression library
license_family: Other
license_file: license.txt

description: |
zlib is designed to be a free, general-purpose, lossless data-compression
library for use on virtually any computer hardware and operating system.
doc_url: http://zlib.net/manual.html
dev_url: https://github.com/madler/zlib
home: http://zlib.net/
# http://zlib.net/zlib_license.html
license: Zlib
summary: Massively spiffy yet delicately unobtrusive compression library
license_family: Other
license_file: license.txt
description: |
zlib is designed to be a free, general-purpose, lossless data-compression
library for use on virtually any computer hardware and operating system.
doc_url: http://zlib.net/manual.html
dev_url: https://github.com/madler/zlib

extra:
recipe-maintainers:
- groutr
- msarahan
- ocefpaf
- mingwandroid
recipe-maintainers:
- groutr
- msarahan
- ocefpaf
- mingwandroid

0 comments on commit 1f4d19c

Please sign in to comment.