Browse Source

Fix and improve Pyston instructions in Compiling for Linux, *BSD

- Fix SCons path to match Pyston 2.3.2's portable archive.
- Use a symbolic link instead of a wrapper script, which works the same.

(cherry picked from commit 1399f7bac34ed851a4181bfe9a3ef7d74b097e74)
Hugo Locurcio 3 years ago
parent
commit
53c0fa893d
1 changed files with 6 additions and 7 deletions
  1. 6 7
      development/compiling/compiling_for_x11.rst

+ 6 - 7
development/compiling/compiling_for_x11.rst

@@ -242,14 +242,13 @@ to get even faster builds.
 - Extract the portable ``.tar.gz`` to a set location, such as ``$HOME/.local/opt/pyston/`` (create folders as needed).
 - Extract the portable ``.tar.gz`` to a set location, such as ``$HOME/.local/opt/pyston/`` (create folders as needed).
 - Use ``cd`` to reach the extracted Pyston folder from a terminal,
 - Use ``cd`` to reach the extracted Pyston folder from a terminal,
   then run ``./pyston -m pip install scons`` to install SCons within Pyston.
   then run ``./pyston -m pip install scons`` to install SCons within Pyston.
-- Create a file with the following contents in ``$HOME/.local/bin/pyston-scons``::
+- To make SCons via Pyston easier to run, create a symbolic link of its wrapper
+  script to a location in your ``PATH`` environment variable::
 
 
-    #!/bin/sh
+    ln -s ~/.local/opt/pyston/bin/scons ~/.local/bin/pyston-scons
 
 
-    $HOME/.local/opt/pyston/usr/bin/scons "$@"
+- Instead of running ``scons <build arguments>``, run ``pyston-scons <build arguments>``
+  to compile Godot.
 
 
-- Make the script executable: ``chmod +x $HOME/.local/bin/pyston-scons``
-- Instead of running ``scons <build arguments>``, run ``pyston-scons <build arguments>`` to compile Godot.
-
-If you can't run the ``pyston-scons`` script after saving it,
+If you can't run ``pyston-scons`` after creating the symbolic link,
 make sure ``$HOME/.local/bin/`` is part of your user's ``PATH`` environment variable.
 make sure ``$HOME/.local/bin/`` is part of your user's ``PATH`` environment variable.