Skip to content

Commit

Permalink
macos tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouaix committed May 31, 2024
1 parent 96435bc commit e906462
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
36 changes: 26 additions & 10 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ o________________INIT_COMMANDS: _default
clean:
cargo clean

install_python_venv:
cd py_scnr && python3 -m venv .venv
cd py_scnr && pip install -r requirements.txt
# cd py_scnr && pip freeze > requirements.txt
echo "now call ---->"
echo "source ./py_scnr/.venv/bin/activate"

# execute all commands to check workspace health, if this command pass, CI should pass as well
all: clean test check check_deny install

Expand All @@ -40,7 +33,9 @@ docs:
cargo doc --workspace --no-deps --open

build_py_dev:
cd py_scnr && virtualenv .venv && maturin develop
#!/usr/bin/env bash
source .venv/bin/activate
cd py_scnr && && python3 -m virtualenv .venv && maturin develop
# ==================================================================================================
# ==================================================================================================
Expand Down Expand Up @@ -104,10 +99,31 @@ install:
# ==================================================================================================
o________________DEPS_COMMANDS: _default

# Installs build tools & dependencies
install_tooling:
# Installs cargo tools
install_cargo_tools:
cargo install cargo-deny
cargo install --locked maturin


# Installs python virtual env requirements
install_python_venv:
cd py_scnr && python3 -m venv .venv
cd py_scnr && pip install -r requirements.txt
# cd py_scnr && pip freeze > requirements.txt
echo "now call ---->"
echo "source ./py_scnr/.venv/bin/activate"

# Installs build tools & dependencies
[linux]
install_tooling: install_cargo_tools && install_python_venv
sudo apt install python3-venv
sudo apt install python3-pip
pip install virtualenv

# Installs build tools & dependencies
[macos]
install_tooling: install_cargo_tools && install_python_venv
brew install python pipx
pipx ensurepath
pipx install pip
pip install virtualenv
1 change: 1 addition & 0 deletions py_scnr/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
maturin==1.4.0
virtualenv

0 comments on commit e906462

Please sign in to comment.