Lines 220-233
Link Here
|
220 |
} |
220 |
} |
221 |
|
221 |
|
222 |
pkg_postrm() { |
222 |
pkg_postrm() { |
223 |
python_makesym |
223 |
local mansuffix=$(ecompress --suffix) |
|
|
224 |
python_makesym |
224 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
225 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
225 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
226 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
226 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
227 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
227 |
"python-config-[0-9].[0-9]" |
228 |
"python-config-[0-9].[0-9]" |
228 |
suffix=$(echo /usr/share/man/man1/python${PYVER}.1* | sed "s/.*python${PYVER}.1//") |
229 |
alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \ |
229 |
ln -s "/usr/share/man/man1/python[0-9][0-9].1${suffix}" \ |
230 |
"python[0-9].[0-9].1${mansuffix}" |
230 |
"/usr/share/man/man1/python.1${suffix}" |
|
|
231 |
|
231 |
|
232 |
python_mod_cleanup /usr/lib/python${PYVER} |
232 |
python_mod_cleanup /usr/lib/python${PYVER} |
233 |
[[ "$(get_libdir)" == "lib" ]] || \ |
233 |
[[ "$(get_libdir)" == "lib" ]] || \ |
Lines 237-251
Link Here
|
237 |
pkg_postinst() { |
237 |
pkg_postinst() { |
238 |
local myroot |
238 |
local myroot |
239 |
myroot=$(echo $ROOT | sed 's:/$::') |
239 |
myroot=$(echo $ROOT | sed 's:/$::') |
|
|
240 |
local mansuffix=$(ecompress --suffix) |
240 |
|
241 |
|
241 |
python_makesym |
242 |
python_makesym |
242 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
243 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
243 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
244 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
244 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
245 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
245 |
"python-config-[0-9].[0-9]" |
246 |
"python-config-[0-9].[0-9]" |
246 |
suffix=$(echo /usr/share/man/man1/python${PYVER}.1* | sed "s/.*python${PYVER}.1//") |
247 |
alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \ |
247 |
ln -s "/usr/share/man/man1/python[0-9][0-9].1${suffix}" \ |
248 |
"python[0-9].[0-9].1${mansuffix}" |
248 |
"/usr/share/man/man1/python.1${suffix}" |
|
|
249 |
|
249 |
|
250 |
python_mod_optimize |
250 |
python_mod_optimize |
251 |
python_mod_optimize -x site-packages \ |
251 |
python_mod_optimize -x site-packages \ |