From 5de001dbc73533d0a1069c2345f7483f4b51979c Mon Sep 17 00:00:00 2001 From: Mike Casale <46603283+mikewcasale@users.noreply.github.com> Date: Wed, 2 Aug 2023 06:55:01 -0700 Subject: [PATCH] Adds additional installation instructions for apple-silicon users. --- README.md | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb06df418..110cb9130 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,53 @@ Permanent URL for this repository: [github.com/bancorprotocol/fastlane-bot][repo Install Fastlane Arbitrage Bot from PyPi using the following command: +Clone the repo from Bancor's GitHub and install: + +```bash +git clone https://github.com/bancorprotocol/fastlane-bot +cd fastlane-bot +pip install -r requirements.txt +python setup.py install +``` + +Here are the added instructions for Mac users with an Apple Silicon chip: + +### Installation for Mac users with Apple Silicon chip + +Due to the architectural differences of the Apple Silicon chip, some Python packages may not install correctly using the standard method. Follow the instructions below to create a compatible conda environment, and then install Fastlane Arbitrage Bot: + +1. Install Miniforge tailored for Apple Silicon from [here](https://github.com/conda-forge/miniforge#miniforge3). + ```bash -pip install fastlane_bot +# to install miniforge +wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh +bash Miniforge3-MacOSX-arm64.sh ``` -Or clone the repo from Bancor's GitHub: +Follow the terminal prompts to ensure conda is installed and initialized. + +2. Create a new conda environment using the correct architecture: + +```bash +conda create -n fastlane_bot_env python=3.9 +conda activate fastlane_bot_env +``` + +3. Clone the repo from GitHub: ```bash git clone https://github.com/bancorprotocol/fastlane-bot cd fastlane-bot -pip install -r requirements.txt -python setup.py install ``` +3. Now, install Fastlane Arbitrage Bot by using the provided bash scrip `apple-silicon-install.sh`: + +```bash +./apple-silicon-install.sh +``` + +Please note that due to potential compatibility issues with the new Apple Silicon chip, some packages may still fail to install correctly. If you encounter any issues, please report them to the package maintainers. + [sim]:https://github.com/bancorprotocol/carbon-simulator ### Legacy Installation (v1.0)