Updated How to Python (markdown)
parent
f5aa65e093
commit
bd6ca60a47
@ -1,7 +1,7 @@
|
||||
Since `251bd8d`, ToaruOS-NIH's C library has been capable of building Python using the following steps:
|
||||
|
||||
0. Install Python 3.6 locally. Python requires that you have the same version as you trying to build when cross-compiling.
|
||||
1. Activate the ToaruOS-NIH toolchain so that `i686-pc-toaru-gcc` is in your path:
|
||||
1. Activate the ToaruOS toolchain so that `i686-pc-toaru-gcc` is in your path:
|
||||
|
||||
`source util/activate.sh`
|
||||
2. Clone the `nih` branch of `https://github.com/klange/cpython` to a directory.
|
||||
@ -9,9 +9,9 @@ Since `251bd8d`, ToaruOS-NIH's C library has been capable of building Python usi
|
||||
|
||||
`./configure --disable-ipv6 --enable-shared --host=i686-pc-toaru --build=i686 --prefix=/usr/python ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_dlopen=yes ac_cv_func_wait3=no ac_cv_var_tzname=no ac_cv_func_unsetenv=no ac_cv_var_putenv=no ac_cv_header_sys_lock_h=no ac_cv_header_sys_param_h=no ac_cv_header_sys_resource_h=no ac_cv_header_libintl_h=no ac_cv_func_sigaction=no`
|
||||
4. Run `make` to build Python.
|
||||
5. Install Python to the the ToaruOS-NIH filesystem base directory:
|
||||
5. Install Python to the the ToaruOS filesystem base directory:
|
||||
|
||||
`make DESTDIR="$TOOLCHAIN/../base" commoninstall bininstall`
|
||||
6. Return to your ToaruOS-NIH checkout and run the following to clean up unused parts of the Python installation and reduce its size:
|
||||
6. Return to your ToaruOS checkout and run the following to clean up unused parts of the Python installation and reduce its size:
|
||||
|
||||
`util/fix-python.sh`
|
Loading…
Reference in New Issue
Block a user