Auto merge of #29124 - michaelgrigoryan25:gh29107, r=jdm

Updated README to fix compatibility issues on Fedora.

<!-- Please describe your changes on the following line: -->
This pull-request fixes compatibility issues with Python in the Fedora part of the documentation. Related to #29107.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #29107

<!-- Either: -->
- [X] These changes do not require tests.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2022-12-02 01:04:46 -05:00 committed by GitHub
commit 309c4f9b51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,12 +95,26 @@ If you get an undefined symbol error on `gst_player_get_config` try removing `gi
#### On Fedora #### On Fedora
``` sh ```sh
sudo dnf install python3 python3-virtualenv python3-pip python3-devel sudo dnf install python3.7 python3-devel
python3 ./mach bootstrap
``` ```
If `python3 ./mach bootstrap` doesn't work, file a bug, and, run the commands below: Installing pip 3.7 alongside Python 3.7 is vital. You might run into issues with virtualenv
when trying to use Mach tools. You can install pip3.7 alongside virtualenv by executing:
```sh
curl https://bootstrap.pypa.io/get-pip.py | sudo -H python3.7
python3.7 -m pip install virtualenv
```
Fedora 37 aliases python3.11 as `python3` by default. For this reason, when running Mach tools, make sure you
execeute them with Python 3.7:
```py
python3.7 ./mach run https://servo.org/
```
If `python3.7 ./mach bootstrap` doesn't work, file a bug, and run the commands below:
``` sh ``` sh
sudo dnf install curl libtool gcc-c++ libXi-devel libunwind-devel \ sudo dnf install curl libtool gcc-c++ libXi-devel libunwind-devel \
@ -113,6 +127,7 @@ sudo dnf install curl libtool gcc-c++ libXi-devel libunwind-devel \
libjpeg-turbo-devel zlib libjpeg libjpeg-turbo-devel zlib libjpeg
``` ```
#### On CentOS #### On CentOS
``` sh ``` sh