Skip to content

Commit

Permalink
common.mk: --no-index is not to be disabled if pure-python is on
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Jan 7, 2022
1 parent b8a4c00 commit c4d441d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mk/spksrc.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@ PIP_HOST = $(shell which pip3)
PIP_CACHE_OPT ?= --no-cache-dir --find-links $(BASE_DISTRIB_DIR)

# Define default wheel & download pip options
PIP_WHEEL_ARGS = wheel --no-binary :all: $(PIP_CACHE_OPT) --no-deps --no-index --wheel-dir $(WHEELHOUSE)
PIP_WHEEL_ARGS = wheel --no-binary :all: $(PIP_CACHE_OPT) --no-deps --wheel-dir $(WHEELHOUSE)

# If we're only building cross-compiled wheels
# all packages will be pre-downloaded, do not
# check online index to ensure using local files
ifneq ($(strip $(WHEELS_PURE_PYTHON_PACKAGING_ENABLE)),TRUE)
PIP_WHEEL_ARGS += --no-index
endif

# BROKEN: https://github.com/pypa/pip/issues/1884
# Current implementation is a work-around for the
# lack of proper source download support from pip
PIP_DOWNLOAD_ARGS = download --no-binary :all: $(PIP_CACHE_OPT) --no-deps --dest $(BASE_DISTRIB_DIR) --no-build-isolation

# Available languages
Expand Down

0 comments on commit c4d441d

Please sign in to comment.