Skip to content

Commit

Permalink
Remove Python 2-related instructions from README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
implicitfield authored and networkException committed Mar 2, 2023
1 parent 630a05a commit 2bc48c1
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ macOS packaging for [ungoogled-chromium](//github.com/Eloston/ungoogled-chromium
* Xcode 12
* Homebrew
* Perl (for creating a `.dmg` package)
* Python 2, specifically 2.7.13 or newer, as `python` in PATH
* Python 3.5 or newer as `python3` in PATH
* Node.js

### Setting up the build environment
Expand All @@ -26,18 +24,9 @@ macOS packaging for [ungoogled-chromium](//github.com/Eloston/ungoogled-chromium
2. Install GNU coreutils (for `greadlink` in packaging script): `brew install coreutils`
3. Install GNU readline: `brew install readline`
4. Install the data compression tools xz and zlib: `brew install xz zlib`
5. Install Python 3.x: `brew install python`
6. Install Python's pyenv to manage python version: `brew install pyenv`
7. Install Python 2.7.13: `pyenv install 2.7.13`
**Note**: in some cases you might get `Build failed: "ERROR: The Python zlib extension was not compiled. Missing the zlib?"` during Python 2.7.13 installation, this can be fixed by running `CPPFLAGS="-I$(brew --prefix zlib)/include" pyenv install 2.7.13`.
8. Unlink binutils to use the one provided with Xcode: `brew unlink binutils`
9. Setup `pyenv`:
```sh
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
```
8. Set global `python` command to use Python 2.7.13: `pyenv global 2.7.13`.
9. Install Node.js: `brew install node`
10. Restart your Terminal
5. Unlink binutils to use the one provided with Xcode: `brew unlink binutils`
6. Install Node.js: `brew install node`
7. Restart your Terminal

### Build

Expand Down

0 comments on commit 2bc48c1

Please sign in to comment.