Skip to content

Commit

Permalink
move recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Oct 20, 2023
1 parent 7636a50 commit dec4dce
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 23 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build_recipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ jobs:
mkdir -p ${CONDA_PREFIX}/conda-bld/emscripten-wasm32
mkdir -p ${CONDA_PREFIX}/conda-bld/linux-64
mkdir -p ${CONDA_PREFIX}/conda-bld/noarch
# if [ $(ls ${CONDA_PREFIX}/conda-bld/emscripten-32/*.tar.bz2 | wc -l) -ne 0 ]; then
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/emscripten-wasm32/*.tar.bz2
# fi
# if [ $(ls ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2 | wc -l) -ne 0 ]; then
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2
# fi
if [ $(ls ${CONDA_PREFIX}/conda-bld/emscripten-32/*.tar.bz2 | wc -l) -ne 0 ]; then
QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/emscripten-wasm32/*.tar.bz2
fi
if [ $(ls ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2 | wc -l) -ne 0 ]; then
QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2
fi
if [ $(ls ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2 | wc -l) -ne 0 ]; then
QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2
fi
# if [ $(ls ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2 | wc -l) -ne 0 ]; then
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2
# fi
9 changes: 0 additions & 9 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ def explicit(
assert os.path.isdir(recipe_dir), f"{recipe_dir} is not a dir"
platform = ""
if emscripten_wasm32:
print("WITH EM")
platform = "emscripten-wasm32"
boa_build(
work_dir=work_dir,
Expand Down Expand Up @@ -232,14 +231,6 @@ def changed(

for recipe_with_change in recipe_with_changes:

if skip_existing and RECIPES_SUBDIR_MAPPING[subdir] == "emscripten-wasm32":
pkg_name = recipe_with_change
print(f"Check if pkg exists: {pkg_name}")
if is_existing_pkg(pkg_name):
print(f"Skip existing pkg: {pkg_name}")
continue
else:
print(f"Build pkg: {pkg_name}")
recipe_dir = os.path.join(recipes_dir, subdir, recipe_with_change)

# diff can shown deleted recipe as changed
Expand Down
8 changes: 6 additions & 2 deletions recipes/recipes_emscripten/arrow-python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi



export INCLUDE_NUMPY_FLAGS="-I$BUILD_PREFIX/lib/python3.10/site-packages/numpy/core/include -I$PREFIX/lib/python3.10/site-packages/numpy/core/include"
export INCLUDE_NUMPY_FLAGS="-I$BUILD_PREFIX/lib/python3.11/site-packages/numpy/core/include -I$PREFIX/lib/python3.11/site-packages/numpy/core/include"

export CFLAGS="$CFLAGS $INCLUDE_NUMPY_FLAGS"
export CXXFLAGS="$CXXFLAGS $INCLUDE_NUMPY_FLAGS"
Expand All @@ -21,4 +21,8 @@ export CXXFLAGS="$CXXFLAGS -sWASM_BIGINT"
export LDFLAGS="$LDFLAGS -sWASM_BIGINT"

cd python
${PYTHON} -m pip install . -vvv
${PYTHON} -m pip install . -vvv

INIT_PATH=$PREFIX/lib/python3.11/site-packages/pyarrow/__init__.py

sed -i "s/__version__ = None/__version__ = \"$PKG_VERSION\"/g" $INIT_PATH
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/arrow-python/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- patches/wasm.patch

build:
number: 4
number: 5

requirements:
build:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dec4dce

Please sign in to comment.