Skip to content

Commit

Permalink
[CHORE] Using uv in MakeFile (#2114)
Browse files Browse the repository at this point in the history
`uv` is much faster than `pip` and there have been many projects that
have used it to replace `pip`.
  • Loading branch information
MeepoWin authored Apr 14, 2024
1 parent 01a3f14 commit 4d8baf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ endif

venv: ## Set up virtual environment
python3 -m venv $(VENV)
$(VENV_BIN)/python -m pip install --upgrade pip
$(VENV_BIN)/python -m pip install --upgrade uv
## Hacks to deal with grpcio compile errors on m1 macs
ifeq ($(IS_M1), 1)
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 \
GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 \
CFLAGS="${CFLAGS} -I /opt/homebrew/opt/openssl/include" \
LDFLAGS="${LDFLAGS} -L /opt/homebrew/opt/openssl/lib" \
$(VENV_BIN)/pip install -r requirements-dev.txt
$(VENV_BIN)/uv pip install -r requirements-dev.txt
else
$(VENV_BIN)/pip install -r requirements-dev.txt
$(VENV_BIN)/uv pip install -r requirements-dev.txt
endif

.PHONY: hooks
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ opencv-python==4.8.1.78

# Pyarrow
pyarrow==12; platform_system != "Windows"
pyarrow==6.0.1; platform_system === "Windows"
pyarrow==6.0.1; platform_system == "Windows"
# Ray
ray[data, client]==2.7.1; python_version < '3.8'
ray[data, client]==2.7.1; python_version >= '3.8'
Expand Down

0 comments on commit 4d8baf0

Please sign in to comment.