-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda_build.sh
22 lines (17 loc) · 995 Bytes
/
conda_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status.
# Activate the build environment.
# Conda-build does this automatically, but if you need to manually adjust paths or
# set environment variables specific to the build, you can do so here.
# Ensure numpy is installed before attempting to run setup.py.
# This step is typically handled by the dependencies in meta.yaml, but is shown here for clarity.
echo "Ensuring numpy is installed..."
"${PYTHON}" -m pip install "numpy>=1.23.0" --no-cache-dir
# Run the package setup.
# This executes the setup.py script, which should handle any compilation steps
# for Fortran extensions or other package-specific build logic.
echo "Running package setup..."
"${PYTHON}" -m pip install . --no-deps -vv
# If there are additional steps required for your package build, they can be added here.
# For example, copying build artifacts to specific locations, additional logging, etc.
echo "Build script completed successfully."