Skip to content

Added support for M1 architecture (Issue#37) #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- [Issue#37](https://github.com/matsoftware/swift-code-metrics/issues/37) Support for M1 architecture
- [Issue#34](https://github.com/matsoftware/swift-code-metrics/issues/34) Improved dependencies resolution

## [1.5.1](https://github.com/matsoftware/swift-code-metrics/releases/tag/1.5.1) - 2020-02-09
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Inspired by the book of Robert C. Martin, _Clean Architecture_, the software wil

This is a _Python 3_ script that depends on _matplotlib_, _adjustText_, _pyfunctional_ and _pygraphviz_.

This latest package depends on the [Graphviz](https://www.graphviz.org/download/) binary that must be installed.
This latest package depends on the [Graphviz](https://www.graphviz.org/download/) binary that must be installed before. If you're in a Mac environment, you can install it directly with `brew install graphviz`.

## Usage

Expand Down
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ python3 -m venv "${top}"/venv

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install wheel

if arch | grep -q 'arm64'; then
echo "Overriding pygraphviz setup for M1 architecture"
"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install --global-option=build_ext --global-option="-I$(brew --prefix graphviz)/include" --global-option="-L$(brew --prefix graphviz)/lib" pygraphviz
fi

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install -r requirements.txt

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install -r tests-requirements.txt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
install_requires = [
"matplotlib >= 2",
"adjustText < 1",
"pygraphviz == 1.5",
"pygraphviz > 1.5",
"pyfunctional == 1.2",
"numpy == 1.21.1",
"dataclasses"
Expand Down