Mirror of: https://codeberg.org/retropikzel/scheme-venv
|
|
||
|---|---|---|
| .gitignore | ||
| Dockerfile | ||
| Dockerfile.test | ||
| Jenkinsfile | ||
| Makefile | ||
| README.md | ||
| scheme-venv | ||
| test.scm | ||
| test.sps | ||
README.md
Tool to create Scheme virtual environments
Installation
make
make install
Usage
scheme-venv chibi r7rs venv
First argument is Scheme, second is RnRS and third is path to directory. The directory must not exist.
After the virtual environment is created you can activate is with:
source venv/bin/activate
After activation you can install packages with either snow-chibi or akku and they will be installed inside the virtual environment. To run your Scheme code use either scheme-script or scheme-compile, executables.
R6RS:
akku install chez-srfi
scheme-script main.sps
scheme-compile main.sps
./main
R7RS:
snow-chibi install srfi.64
scheme-script main.scm
scheme-compile main.scm
./main
Implementation specific notes
Chicken
- Before compilation the directory is changed to be venv/lib so libraries will be found
- venv/include
- added into include paths
- venv/lib
- added into library paths
- venv/scheme-compile
- Environment variable VENV_CSC_ARGS is added to csc arguments