gnu: python: Make sure shared libraries are stripped.

* gnu/packages/python.scm (python-2)[arguments]: Add
'make-libraries-writable' phase.
This commit is contained in:
Ludovic Courtès 2016-05-10 09:04:40 +02:00
parent 9ffe61b0ee
commit 216c283b0a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 9 additions and 0 deletions

View File

@ -223,6 +223,15 @@
file)))))) file))))))
(call-with-output-file "__init__.py" (const #t)) (call-with-output-file "__init__.py" (const #t))
#t))))))) #t)))))))
(add-before 'strip 'make-libraries-writable
(lambda* (#:key outputs #:allow-other-keys)
;; Make .so files writable so they can be stripped.
(let ((out (assoc-ref outputs "out")))
(for-each (lambda (file)
(chmod file #o755))
(find-files (string-append out "/lib")
"\\.so"))
#t)))
(add-after 'install 'move-tk-inter (add-after 'install 'move-tk-inter
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; When Tkinter support is built move it to a separate output so ;; When Tkinter support is built move it to a separate output so