Просмотр исходного кода

Enhance Python 2.7 installation instructions

Added options for standard and optimized builds of Python 2.7.
ctch3ng 2 месяцев назад
Родитель
Сommit
abcc9b0819
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -23,6 +23,21 @@ Ubuntu 24.04 does not include Python 2.7 by default, as it has reached its end o
     cd Python-2.7.18
     cd Python-2.7.18
     ```
     ```
 5. **Configure and compile Python 2.7:**
 5. **Configure and compile Python 2.7:**
+    When configuring the build, you have two options for the compilation:
+    
+    Option 1: Standard Build (Recommended for simplicity)
+    This option compiles Python without advanced optimizations, resulting in a cleaner and faster build process.
+    
+    ```bash
+    ./configure
+    make
+    sudo make install
+    ```
+    
+    Option 2: Optimized Build (For potential performance gains)
+    The `--enable-optimizations` flag enables Profile-Guided Optimization (PGO), which can result in a slightly faster interpreter. 
+    Note: This could increase the compile time and will produce a large amount of verbose output, including warnings/logs, during the make step. 
+    
     ```bash
     ```bash
     ./configure --enable-optimizations
     ./configure --enable-optimizations
     make
     make