Skip to content

Commit

Permalink
[hg] getdeps: set python include paths
Browse files Browse the repository at this point in the history
Needed to help boost-python build find pyconfig.h
  • Loading branch information
ahornby committed Mar 23, 2021
1 parent 8d2fbc6 commit c1b415b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/edenscm_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set python3 include paths for later use in boost-python build
run: |
py3includes=$(python3-config --includes|sed -e 's/ -I/:/g' -e 's/^-I//')
echo "Python3 includes: ${py3includes}"
if [ -n "$C_INCLUDE_PATH" ]; then
echo 'C_INCLUDE_PATH="'"$C_INCLUDE_PATH:""${py3includes}"'"' >> $GITHUB_ENV
else
echo 'C_INCLUDE_PATH="'"${py3includes}"'"' >> $GITHUB_ENV
fi
if [ -n "$CPLUS_INCLUDE_PATH" ]; then
echo 'CPLUS_INCLUDE_PATH="'"$CPLUS_INCLUDE_PATH:""${py3includes}"'"' >> $GITHUB_ENV
else
echo 'CPLUS_INCLUDE_PATH="'"${py3includes}"'"' >> $GITHUB_ENV
fi
- name: Install system deps
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive eden_scm
- name: Fetch fb303-source
Expand Down

0 comments on commit c1b415b

Please sign in to comment.