Skip to content

Commit

Permalink
Vendor wheel for hexnumgen so we don't have to build it
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Jan 3, 2024
1 parent eab8eb0 commit 6ba741a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
{ name="object-Object" },
]
keywords = ["hexdoc"]
requires-python = ">=3.11"
requires-python = ">=3.11,<3.12"
dependencies = []

[project.optional-dependencies]
Expand All @@ -39,10 +39,15 @@ runtime = [
"sty~=1.0",
"pillow~=9.5",
"semver~=3.0",
]
target-any = [
"hexnumgen @ git+https://github.com/object-Object/hexnumgen-rs.git@70d683ee9b",
]
target-linux = [ # x86_64-unknown-linux-gnu
"hexnumgen @ {root:uri}/vendor/hexnumgen-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl",
]
dev = [
"HexBug[aws-cdk,scripts,runtime]"
"HexBug[aws-cdk,scripts,runtime,target-any]",
]

[project.urls]
Expand Down
6 changes: 2 additions & 4 deletions scripts/aws/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ set -euox pipefail
cd /var/lib/codedeploy-apps/HexBug

python3.11 -m venv venv #--clear
# TODO: hack
# we need the rust toolchain to build hexnumgen, and i don't want to install it just for codedeploy
# so run as my user where rust is already installed
sudo su object -c 'source venv/bin/activate && pip install -e ".[runtime]"'
source venv/bin/activate
pip install -e ".[runtime]"
Binary file not shown.

0 comments on commit 6ba741a

Please sign in to comment.