mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 18:13:54 +03:00
38 lines
1.4 KiB
Bash
Executable File
38 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ ! -d pypyjs-release-nojit ] ; then
|
|
git clone https://github.com/pypyjs/pypyjs-release-nojit.git
|
|
fi
|
|
|
|
GRAPHENE_DIR="$(python -c "import os; import graphene; print os.path.dirname(graphene.__file__)")"
|
|
GRAPHQL_DIR="$(python -c "import os; import graphql; print os.path.dirname(graphql.__file__)")"
|
|
GRAPHQL_RELAY_DIR="$(python -c "import os; import graphql_relay; print os.path.dirname(graphql_relay.__file__)")"
|
|
SIX_DIR="$(python -c "import os; import six; print six.__file__.rstrip('c')")"
|
|
|
|
cd pypyjs-release-nojit
|
|
|
|
eval python tools/module_bundler.py add ./lib/modules "$GRAPHENE_DIR"
|
|
eval python tools/module_bundler.py add ./lib/modules "$GRAPHQL_DIR"
|
|
eval python tools/module_bundler.py add ./lib/modules "$GRAPHQL_RELAY_DIR"
|
|
eval python tools/module_bundler.py add ./lib/modules "$SIX_DIR"
|
|
|
|
python ./tools/module_bundler.py preload ./lib/modules graphene
|
|
python ./tools/module_bundler.py preload ./lib/modules graphene.relay
|
|
python ./tools/module_bundler.py preload ./lib/modules graphql
|
|
python ./tools/module_bundler.py preload ./lib/modules graphql_relay
|
|
python ./tools/module_bundler.py preload ./lib/modules six
|
|
|
|
python ./tools/module_bundler.py remove ./lib/modules unittest
|
|
|
|
lib_dirname=`perl -e 'use Cwd "abs_path";print abs_path(shift)' lib/`
|
|
|
|
if [ -d ../../../static/playground/lib ] ; then
|
|
rm ../../../static/playground/lib
|
|
fi
|
|
|
|
mkdir -p ../../../static/playground
|
|
|
|
exec ln -s "$lib_dirname/" ../../../static/playground/lib
|