File tree Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ find_package(Python COMPONENTS Interpreter NumPy Development.Module REQUIRED)
9
9
10
10
# Add custom command to generate the version file
11
11
add_custom_command (
12
- OUTPUT src/blosc2/_version .py
12
+ OUTPUT src/blosc2/version .py
13
13
COMMAND ${Python_EXECUTABLE} generate_version.py
14
14
DEPENDS generate_version.py pyproject.toml
15
15
VERBATIM
@@ -27,11 +27,15 @@ Python_add_library(blosc2_ext MODULE blosc2_ext.c WITH_SOABI)
27
27
# We need to link against NumPy
28
28
target_link_libraries (blosc2_ext PRIVATE Python::NumPy )
29
29
30
+ if (DEFINED ENV{USE_SYSTEM_BLOSC2} )
31
+ set (USE_SYSTEM_BLOSC2 ON )
32
+ endif ()
33
+
30
34
if (USE_SYSTEM_BLOSC2 )
31
35
set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /cmake" )
32
36
find_package (PkgConfig REQUIRED )
33
37
pkg_check_modules (Blosc2 REQUIRED IMPORTED_TARGET blosc2 )
34
- target_link_libraries (blosc2_ext PkgConfig::Blosc2 )
38
+ target_link_libraries (blosc2_ext PRIVATE PkgConfig::Blosc2 )
35
39
else ()
36
40
set (STATIC_LIB ON CACHE BOOL "Build a static version of the blosc library." )
37
41
set (SHARED_LIB ON CACHE BOOL "Build a shared library version of the blosc library." )
Original file line number Diff line number Diff line change 10
10
version = pyproject ["project" ]["version" ]
11
11
12
12
# Write the version to blosc2/_version.py
13
- with open ("src/blosc2/_version .py" , "w" ) as f :
13
+ with open ("src/blosc2/version .py" , "w" ) as f :
14
14
f .write (f'__version__ = "{ version } "\n ' )
Original file line number Diff line number Diff line change 1
- {% set name = "blosc2" %}
1
+ {% set name = "blosc2" %} # TODO: should be python-blosc2 or blosc2 as in PyPI?
2
2
{% set version = "3.0.0rc3" %}
3
3
4
4
package :
5
5
name : {{ name|lower }}
6
6
version : {{ version }}
7
7
8
8
source :
9
+ # TODO: make actual tarballs work
9
10
# url: https://github.com/Blosc/python-blosc2/archive/refs/tags/v{{ version }}.tar.gz
10
- # url: https://github.com/Blosc/python-blosc2/archive/refs/tags/v3.0.0-rc2.tar.gz
11
- # sha256: cbf42b475c02145a979e4ac6cbd5ad9df49d23a417b56b6b7bdf5a9d0a4b0716
12
11
url : /tmp/blosc2-3.0.0rc3.tar.gz
13
- sha256 : 74c7c81cdbf28702fc751f3b6079b1e3653fec8fd285d54214e962c2113c593c
12
+ sha256 : ac822fd8d60e7356f48c638266b83486e31790fd70e482f814356be33f3fcedb
14
13
include :
15
14
- pyproject.toml
16
15
19
18
script_env :
20
19
- USE_SYSTEM_BLOSC2=1
21
20
script :
22
- # - {{ PYTHON }} -m pip install --no-deps --ignore-installed .
23
- # - -no-deps --no-build-isolation
24
21
- {{ PYTHON }} -m pip install . -vv
25
22
26
23
requirements :
@@ -40,9 +37,11 @@ requirements:
40
37
- scikit-build-core
41
38
- cython >=3
42
39
- numpy >=2.0.0
40
+ - c-blosc2 >=2.15.2
43
41
run :
44
42
- python >=3.11
45
43
- numpy >=1.25.0
44
+ - c-blosc2 >=2.15.2
46
45
- ndindex
47
46
- msgpack-python
48
47
- numexpr
@@ -54,10 +53,13 @@ test:
54
53
- blosc2
55
54
requires :
56
55
- pip
57
- - pytest
56
+ # - pytest
58
57
commands :
59
58
- pip check
60
- - pytest -v --pyargs blosc2
59
+ - python -c "import blosc2; print(blosc2.__version__)"
60
+ - python -c "import blosc2; blosc2.print_versions()"
61
+ # The test suite is not being installed
62
+ # - pytest -v
61
63
62
64
about :
63
65
home : https://github.com/Blosc/python-blosc2
Original file line number Diff line number Diff line change 12
12
13
13
from enum import Enum
14
14
15
- from ._version import __version__
15
+ from .version import __version__
16
16
17
17
__version__ = __version__
18
18
"""
Original file line number Diff line number Diff line change
1
+ __version__ = "3.0.0rc3"
You can’t perform that action at this time.
0 commit comments