-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23b74f4
commit afad65a
Showing
36 changed files
with
1,045 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,59 @@ | ||
name = "blosc" | ||
version = "1.21.1" | ||
|
||
build_requires = ["cmake", "vs"] | ||
|
||
variants = [["platform-windows", "arch-AMD64", "vs"]] | ||
@early() | ||
def build_requires(): | ||
import platform | ||
|
||
if platform.system() == "Windows": | ||
return ["cmake", "vs"] | ||
else: | ||
return ["cmake"] | ||
|
||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
|
||
cook_variant = os.getenv("REZ_COOK_VARIANT") | ||
if cook_variant: | ||
# If we're building the package, we want to use the variant supplied to us | ||
return [ast.literal_eval(cook_variant)] | ||
else: | ||
# Otherwise tell rez-cook what variants we are capable of building | ||
return [ | ||
["platform-linux", "arch-x86_64", "cxx11abi", "cfg"], | ||
["platform-windows", "arch-AMD64", "vs", "cfg"], | ||
] | ||
|
||
|
||
def commands(): | ||
import platform | ||
|
||
env.BLOSC_ROOT = "{root}" | ||
env.CMAKE_PREFIX_PATH.prepend("{root}") | ||
env.PATH.prepend("{root}/bin") | ||
|
||
if platform.system(): | ||
env.LD_LIBRARY_PATH.prepend("{root}/lib") | ||
|
||
|
||
config_args = [ | ||
"cmake", | ||
"{root}", | ||
"-DCMAKE_INSTALL_PREFIX={install_path}", | ||
"-DCMAKE_MODULE_PATH=$env:CMAKE_MODULE_PATH", | ||
"-DCMAKE_BUILD_TYPE=Release", | ||
" -G Ninja", | ||
] | ||
|
||
build_command = ( | ||
" ".join(config_args) + " && cmake --build . --target install --config Release" | ||
) | ||
|
||
|
||
def pre_cook(): | ||
download_and_unpack( | ||
f"https://github.com/Blosc/c-blosc/archive/refs/tags/v{version}.zip" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
boost/1.70.0/platform-linux/arch-x86_64/cxx11abi/python/cfg/package.py
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
boost/1.70.0/platform-windows/arch-AMD64/vs/python/cfg/package.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.