Changeset 2da3d572
- Timestamp:
- 02/21/2019 07:45:05 AM (5 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 8.4, 9.0, 9.1, kea, ken/inkscape-core-mods, lazarus, lxqt, plabs/python-mods, qt5new, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 7e28f17d
- Parents:
- c9bc0628
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/pygobject3.xml
rc9bc0628 r2da3d572 78 78 </para> 79 79 80 <bridgehead renderas="sect5">Recommended</bridgehead> 81 <para role="recommended"> 82 <xref linkend="python2"/> and 83 <xref linkend="pycairo"/> 84 (<application>Python 2</application> module) 85 </para> 86 80 87 <bridgehead renderas="sect5">Optional (for the tests)</bridgehead> 81 88 <para role="optional"> 82 <xref linkend="python2"/>,83 89 <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>, 84 90 <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and … … 95 101 <title>Installation of PyGObject3</title> 96 102 103 <note> 104 <para> 105 Both <application>Python 2</application> and 106 <application>Python 3</application> modules can 107 be built and installed without any conflicts. 108 </para> 109 </note> 110 111 <para> 112 To build <application>PyGObject3</application> as a 113 <application>Python 2</application> module, run the 114 following commands: 115 </para> 116 117 <screen><userinput>mkdir python2 && 118 pushd python2 && 119 meson --prefix=/usr -Dpython=python2 && 120 ninja && 121 popd</userinput></screen> 122 123 <para> 124 To test the results, issue: <command>ninja -C python2 test</command>. 125 An already active graphical session with bus address is necessary to 126 run the tests. 127 </para> 128 97 129 <para> 98 130 To build <application>PyGObject3</application> as a … … 101 133 </para> 102 134 103 <screen><userinput>mkdir build&&104 cd build&&135 <screen><userinput>mkdir python3 && 136 pushd python3 && 105 137 meson --prefix=/usr -Dpython=python3 && 106 ninja</userinput></screen> 138 ninja && 139 popd</userinput></screen> 107 140 108 141 <para> 109 To test the results, issue: <command>ninja test</command>.142 To test the results, issue: <command>ninja -C python3 test</command>. 110 143 An already active graphical session with bus address is necessary to 111 144 run the tests. … … 113 146 114 147 <para> 115 To install the module, run the following command as the 148 To install the <application>Python 2</application> module, 149 run the following command as the 116 150 <systemitem class="username">root</systemitem> user: 117 151 </para> 118 152 119 <screen role="root"><userinput>ninja install</userinput></screen> 153 <screen role="root"><userinput>ninja -C python2 install</userinput></screen> 154 155 <para> 156 To install the <application>Python 3</application> module, 157 run the following command as the 158 <systemitem class="username">root</systemitem> user: 159 </para> 160 161 <screen role="root"><userinput>ninja -C python3 install</userinput></screen> 120 162 121 163 </sect3> … … 134 176 </seg> 135 177 <seg> 178 /usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or 136 179 /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-37m-<arch>-linux-gnu.so 137 180 </seg> 138 181 <seg> 139 182 /usr/include/pygobject-3.0, and 183 /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or 140 184 /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat} 141 185 </seg>
Note:
See TracChangeset
for help on using the changeset viewer.