Hartmut Goebel <h.goe...@crazy-compilers.com> 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: tho...@kluyver.me.uk >> +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