Simple Python script to download, build and install a Janet install along with Spork and Jeep.
Python3 and gcc/xcode compiler installed.
Python3, MSVC compiler
Clone this repo and run python3 janetup.py <dirname> to create
everything in a new directory including scripts to load
and unload this version in your shell.
Once the script has completed, load this new environment with one of the provided scripts:
run . <dirname>/bin/load_janet to enter the new environment, then unload_janet to exit.
run source <dirname>/bin/load_janet.fish to enter the new environment, then unload_janet to exit.
run . <dirname>/bin/load_janet.ps1 to enter the new environment, then unload_janet to exit.
$ python janetup.py /home/user/jenvs/janet-dev
$ source /home/user/jenvs/janet-dev/bin/load_janet.sh
$ jeep list
Installed bundles:
jeep (DEVEL)
spork
System:
version: 1.39.1-local
platform: macos/aarch64/clang
syspath: /home/user/jenvs/janet-dev/lib/janet
Environment:
JANET_PATH: <undefined>
Listing completed.Note: Jeep is not installed on Windows for now.
$ python3 .\janetup.py c:\Users\user\test2
$ source c:\Users\user\test2\bin\load_janet.ps1
$ janet-pm show-config
build dir: _build
build type: release
curl: curl
git: git
offline: false
pkg list: https://github.com/janet-lang/pkgs.git
prefix: C:\Users\user\test2
syspath: C:\Users\user\test2\Library
tar: tar
toolchain: msvc
verbose: false
workers: 32