builder.sh 411 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. if [[ ! -f setup.py ]]; then
  4. >&2 echo "Cannot find setup.py, make sure you have mounted your source dir to /workspace"
  5. exit 1
  6. fi
  7. mkdir -p ./node_modules
  8. echo "Populating node_modules cache..."
  9. cp -ur /js/node_modules/* ./node_modules/
  10. export YARN_CACHE_FOLDER="$(mktemp -d)"
  11. python setup.py bdist_wheel --build-number 0
  12. rm -r "$YARN_CACHE_FOLDER"
  13. cp requirements-frozen.txt dist/