|
From: | Ricardo Wurmus |
Subject: | Re: [PATCH 09/16] gnu: Add python-entrypoints. |
Date: | Fri, 04 Nov 2016 17:54:00 +0100 |
User-agent: | mu4e 0.9.16; emacs 26.0.50.1 |
Hartmut Goebel <address@hidden> writes: > Am 01.11.2016 um 13:20 schrieb Ricardo Wurmus: >> + (modify-phases %standard-phases >> + (delete 'build) >> + (replace 'install >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (let* ((out (assoc-ref outputs "out")) >> + (python-version ((@@ (guix build python-build-system) >> + get-python-version) >> + (assoc-ref inputs "python"))) >> + (target (string-append out "/lib/python" python-version >> + "/site-packages/"))) >> + (mkdir-p target) >> + (call-with-output-file (string-append target >> "entrypoints.egg-info") >> + (lambda (port) >> + (format port "\ >> +Metadata-Version: 1.1 >> +Name: entrypoints >> +Version: ~a >> +Summary: Discover and load entry points from installed packages >> +Author: Thomas Kluyver >> +Author-email: address@hidden >> +Classifier: License :: OSI Approved :: MIT License >> +" ,version))) >> + (install-file "entrypoints.py" target) >> + #t)))))) > > Instread of this I recommend adding a minimal setup.py and let the > build-system do the job. This would be more future proof. That’s a good idea. I did this and it really simplified the patch a lot. Thanks! ~~ Ricardo
[Prev in Thread] | Current Thread | [Next in Thread] |