forked from andresch/trackfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-launcher.sh
More file actions
32 lines (25 loc) · 822 Bytes
/
Copy pathdev-launcher.sh
File metadata and controls
32 lines (25 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# Copyright 2020 by Andreas Schmidt
# All rights reserved.
# This file is part of the trackfs project
# and licensed under the terms of the GNU Lesser General Public License v3.0.
# See https://github.com/andresch/trackfs for details.
#
# tell fusepy where to find fuse library
export FUSE_LIBRARY_PATH=/usr/lib/libfuse.so
# make sure that python doesn't write into the mounted working directory
export PYTHONPYCACHEPREFIX=/tmp/__pycache__
# prepare the dev tools for trackfs
ln -s /work/.pypirc ~/.pypirc
# create an isolated environment in ~/dev for the python tooling
mkdir -p ~/dev
cd ~/dev
for file in $(ls /work); do ln -s "/work/${file}" "${file}"; done
ln -s "/work/.github" ".github"
pip install -e .
# launch sub-shell
export ENV=/work/tools.sh
/bin/sh
# cleanup
pip uninstall --yes trackfs