Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a0a1242a authored by hhakim's avatar hhakim
Browse files

Fix macos sed command on meta.yaml.

[skip ci]
parent de9f6fdc
Branches
Tags 3.20.0
No related merge requests found
...@@ -105,10 +105,16 @@ sed -e "s%@PYFAUST_VERSION@%$PYFAUST_VERSION%;s%@WHL_URL@%$WHL_URL%" $META_YAML_ ...@@ -105,10 +105,16 @@ sed -e "s%@PYFAUST_VERSION@%$PYFAUST_VERSION%;s%@WHL_URL@%$WHL_URL%" $META_YAML_
if [[ "$SYSTEM" = win ]] if [[ "$SYSTEM" = win ]]
then then
sed -i 's%@LICENSE_FILEPATH@%..\\license.txt%' pyfaust/meta.yaml sed -i 's%@LICENSE_FILEPATH@%..\\license.txt%' pyfaust/meta.yaml
else elif [[ "$SYSTEM" = macosx ]]
then
# macos sed doesn't like -i for some versions
sed -e 's/@LICENSE_FILEPATH@/..\/license.txt/' pyfaust/meta.yaml > /tmp/meta.yaml
mv /tmp/meta.yaml pyfaust/meta.yaml
else # [[ "$SYSTEM" = linux ]]
sed -i 's%@LICENSE_FILEPATH@%../license.txt%' pyfaust/meta.yaml sed -i 's%@LICENSE_FILEPATH@%../license.txt%' pyfaust/meta.yaml
fi fi
#### THIRD STEP: build the package using conda #### THIRD STEP: build the package using conda
if ! which conda if ! which conda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment