Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison README @ 5:12bd027f1969
Enhance README for 2nd build
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 29 Sep 2022 09:08:59 +0200 |
| parents | 1d6a50b2c6ee |
| children | 8e971efdf08f |
comparison
equal
deleted
inserted
replaced
| 4:1d6a50b2c6ee | 5:12bd027f1969 |
|---|---|
| 1 | 1 |
| 2 Notes on how to build | 2 Notes on how to build |
| 3 ===================== | 3 ===================== |
| 4 | 4 |
| 5 | |
| 6 1. Schritt: ein erstes pypy bauen | |
| 7 --------------------------------- | |
| 8 | |
| 9 Erst einmal mit dem **alten** Ports-Verzeichnis, welches insgesamt auf | |
| 10 dem Stand ist, wo pypy noch offizieller Bestandteil des Ports-Trees war. | |
| 11 | |
| 12 Problem: py27-setuptools ist aber aktuell in Wirklichkeit py27-setuptools44. | |
| 13 | |
| 14 Deshalb tricksen und zum ersten Bauen und installieren die setuptools in | |
| 15 der Pkg-Db umbenennen mit "pkg set -n" | |
| 16 | |
| 17 | |
| 18 ACHTUNG: Ports-Tree auf alten Zeitpunkt stellen: | |
| 19 "hg update -r 377386a46a6b" | |
| 20 | |
| 21 | |
| 5 Dependencies | 22 Dependencies |
| 6 ------------ | 23 ~~~~~~~~~~~~ |
| 7 | 24 |
| 8 Build py27-pycparser (Origin: devel/py-pycparser): | 25 Build py27-pycparser (Origin: devel/py-pycparser): |
| 9 | 26 |
| 10 pkg install py27-setuptools44 | 27 pkg install py27-setuptools44 |
| 11 | 28 |
| 12 pkg set -n py27-setuptools44:py27-setuptools | 29 pkg set -n py27-setuptools44:py27-setuptools |
| 13 | 30 |
| 14 cd devel/py-pycparser | 31 cd devel/py-pycparser |
| 15 make FLAVOR=py27 package | 32 make FLAVOR=py27 package |
| 16 | 33 |
| 17 pkg set -n py27-setuptools:py27-setuptools44 | 34 Install this package: pkg install py27-pycparser |
| 18 | 35 |
| 19 Install this package: pkg install py27-pycparser | 36 |
| 37 PyPy | |
| 38 ~~~~ | |
| 39 | |
| 40 Origin: lang/pypy | |
| 20 | 41 |
| 21 Install -A gmake, binutils, expat, libunwind | 42 Install -A gmake, binutils, expat, libunwind |
| 22 | 43 |
| 23 Auch sicherstellen, daß libffi und libz installiert sind | 44 Unbedingt auch sicherstellen, daß libffi und libz installiert sind |
| 24 | |
| 25 | |
| 26 PyPy | |
| 27 ---- | |
| 28 | |
| 29 Origin: lang/pypy | |
| 30 | 45 |
| 31 Build: | 46 Build: |
| 32 | 47 |
| 33 pkg set -n py27-setuptools44:py27-setuptools | 48 pkg set -n py27-setuptools44:py27-setuptools |
| 49 make rmconfig | |
| 50 make build | |
| 34 make package | 51 make package |
| 35 | 52 |
| 53 Installieren | |
| 36 | 54 |
| 37 PyPy3 | 55 Dann erst einmal die setuptools wieder zurückbenennen: |
| 38 ----- | 56 |
| 57 pkg set -n py27-setuptools:py27-setuptools44 | |
| 58 | |
| 59 Testen folgender Importe: | |
| 60 | |
| 61 import bz2 | |
| 62 import curses | |
| 63 import pyexpat | |
| 64 import zlib | |
| 65 import ssl | |
| 66 import cffi | |
| 67 | |
| 68 | |
| 69 2. Schritt: nochmal bauen mit "richtiger" und aktueller Ports-Umgebung | |
| 70 ---------------------------------------------------------------------- | |
| 71 | |
| 72 Vorgehen im Prinzip wie beim ersten Schritt, nur den aktuellen py27-pycparser | |
| 73 installieren als VB und dann auch mittels "make config" das installierte | |
| 74 erste "pypy" als Übersetzer nehmen | |
| 75 | |
| 76 ACHTUNG: Ports-Tree auf neueste Version stellen per "hg update". | |
| 77 Keine setuptools-Umbenennung! | |
| 78 | |
| 79 | |
| 80 Dependencies | |
| 81 ~~~~~~~~~~~~ | |
| 82 | |
| 83 Build py27-pycparser (Origin: devel/py-pycparser): | |
| 84 | |
| 85 Den lassen, der kann mit | |
| 86 | |
| 87 pkg info py27-setuptools44 | |
| 88 | |
| 89 cd devel/py-pycparser | |
| 90 | |
| 91 Zum Bauen temporär "USES=python:2.7" einstellen. | |
| 92 | |
| 93 Bauen: | |
| 94 | |
| 95 make package | |
| 96 | |
| 97 Install this package: pkg install py27-pycparser | |
| 98 | |
| 99 | |
| 100 PyPy | |
| 101 ~~~~ | |
| 102 | |
| 103 Mit PyPy bauen: | |
| 104 | |
| 105 make config -> PYPY | |
| 106 make build | |
| 107 make package | |
| 108 | |
| 109 Re-Installation: | |
| 110 | |
| 111 pkg remove pypy | |
| 112 pkg install pypy | |
| 113 | |
| 114 Testen folgender Importe: | |
| 115 | |
| 116 import bz2 | |
| 117 import curses | |
| 118 import pyexpat | |
| 119 import zlib | |
| 120 import ssl | |
| 121 import cffi |
