Skip to content

Commit

Permalink
renamed package to apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Apr 21, 2022
1 parent c230958 commit f49f2bf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# [MediaPipe](https://github.com/google/mediapipe) - ARM
Prebuilt Google MediaPipe packages for arm64.
# [MediaPipe](https://github.com/google/mediapipe) for Apple Silicon
Prebuilt Google MediaPipe packages for Apple Silicon (`arm64`.

## Install
To install the prebuilt packages, use the following command. The package is called mediapipe-arm but is a drop-in-replacement for the mediapipe package.
To install the prebuilt packages, use the following command. The package is called **mediapipe-silicon** but is a drop-in-replacement for the mediapipe package.

```
pip install mediapipe-arm --find-links ?
pip install mediapipe-silicon --find-links https://github.com/cansik/mediapipe-silicon/releases/tag/v0.8.9
```

## Build
To build the libraries yourself, please first install the following dependencies and run the build script.

```
brew install wget git git-lfs cmake protobuf bazelisk opencv
brew install wget cmake protobuf bazelisk opencv@3
brew uninstall --ignore-dependencies glog
```

Expand Down
15 changes: 12 additions & 3 deletions patches/setup.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
diff --git a/setup.py b/setup.py
index a0368d5..b683b60 100644
index a0368d5..6e6feae 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ import setuptools.command.build_ext as build_ext
import setuptools.command.build_py as build_py
import setuptools.command.install as install

-__version__ = 'dev'
+__version__ = '0.8.9'
IS_WINDOWS = (platform.system() == 'Windows')
MP_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
MP_DIR_INIT_PY = os.path.join(MP_ROOT_PATH, 'mediapipe/__init__.py')
@@ -332,6 +332,8 @@ class BuildPy(build_py.build_py):
build_py.build_py.finalize_options(self)

Expand All @@ -16,10 +25,10 @@ index a0368d5..b683b60 100644

setuptools.setup(
- name='mediapipe',
+ name='mediapipe-arm',
+ name='mediapipe-silicon',
version=__version__,
- url='https://github.com/google/mediapipe',
+ url='https://github.com/cansik/mediapipe-arm',
+ url='https://github.com/cansik/mediapipe-silicon',
description='MediaPipe is the simplest way for researchers and developers to build world-class ML solutions and applications for mobile, edge, cloud and the web.',
author='The MediaPipe Authors',
author_email='mediapipe@google.com',

0 comments on commit f49f2bf

Please sign in to comment.