Skip to content

Commit c986863

Browse files
committed
Provide dummy wheel distributions for installing on Apple Silicon #866
Signed-off-by: tdruez <[email protected]>
1 parent c5a0609 commit c986863

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ VENV_LOCATION=.venv
2626
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
2727
MANAGE=${VENV_LOCATION}/bin/python manage.py
2828
VIRTUALENV_PYZ=etc/thirdparty/virtualenv.pyz
29+
PIP_ARGS=--find-links=./etc/thirdparty/dummy_dist
2930
# Do not depend on Python to generate the SECRET_KEY
3031
GET_SECRET_KEY=`head -c50 /dev/urandom | base64 | head -c50`
3132
# Customize with `$ make envfile ENV_FILE=/etc/scancodeio/.env`
@@ -51,11 +52,11 @@ virtualenv:
5152

5253
conf: virtualenv
5354
@echo "-> Install dependencies"
54-
@${ACTIVATE} pip install -e .
55+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .
5556

5657
dev: virtualenv
5758
@echo "-> Configure and install development dependencies"
58-
@${ACTIVATE} pip install -e .[dev]
59+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .[dev]
5960

6061
envfile:
6162
@echo "-> Create the .env file and generate a secret key"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Dummy Wheel Distributions for Apple Silicon (macOS ARM64)
2+
=========================================================
3+
4+
Overview
5+
--------
6+
This directory provides **empty wheel distributions** designed as a workaround to
7+
allow the installation of `ScanCode.io` on **Apple Silicon (macOS ARM64)** platforms.
8+
9+
The issue arises because certain required packages, such as `extractcode-7z`, do not
10+
offer pre-built wheels compatible with Apple Silicon.
11+
Consequently, `pip` encounters dependency resolution errors during installation.
12+
13+
Purpose
14+
-------
15+
The dummy wheels in this project serve as placeholders. These wheels:
16+
- **Contain no functionality** and are completely empty.
17+
- Allow `pip` to resolve dependencies correctly by tricking it into treating the
18+
required package as already installed.
19+
20+
Caution
21+
-------
22+
These dummy wheels **do not provide any actual functionality**.
23+
They only exist to bypass `pip` dependency resolution issues and allow `ScanCode.io`
24+
to be installed on Apple Silicon.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)