Zig compiler multiplexer
Project description
zup
dependencies
- Python 3.8
Installation
$ pip install zup
Installing Zig
This will install latest master Zig release and set it as default zig
command in your system.
zup install master -d
Configuration
Config file is a python script that gets executed before any command is ran.
It can be opened with zup config
.
zup
exposes itself as a library in config script.
# config.py
# windows: Path(os.getenv('APPDATA')) / 'zup/config.py'
# macos: Path.home() / 'Library/Preferences/zup/config.py'
# other: Path.home() / '.config/zup/config.py'
# url where index will be fetched from
# default: 'https://ziglang.org/download/index.json'
index_url = zup.config.default_index_url()
# directory where zig compilers are installed
# windows: Path(os.getenv('LOCALAPPDATA')) / 'zup'
# macos: Path.home() / 'Library/Application Support/zup'
# other: Path.home() / '.local/share/zup'
install_dir = zup.config.default_install_dir()
# directory where symlinks to compilers are created
# windows: install_dir
# macos: install_dir
# other: Path.home() / '.local/bin'
symlink_dir = zup.config.default_symlink_dir()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zup-0.1.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
zup-0.1.0-py3-none-any.whl
(7.7 kB
view hashes)