unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24557: python importer: extend requirements import
@ 2016-09-28 16:35 ng0
  2016-09-29 11:25 ` Danny Milosavljevic
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2016-09-28 16:35 UTC (permalink / raw)
  To: 24557

One example:

ng0@shadowwalker ~$ guix import pypi hyperkitty

Starting download of /tmp/guix-file.yrqmcv
From https://pypi.python.org/packages/47/2d/cc2adf4bc0ed7bb4189b3146dde921c9a6ecc33f0f87c96c744d89bab154/HyperKitty-1.0.3.tar.gz...
 …1.0.3.tar.gz  1.5MiB              1.1MiB/s 00:01 [####################] 100.0%
tar: HyperKitty-1.0.3/requirements.txt: Not found in archive
tar: Exiting with failure status due to previous errors
guix import: warning: 'tar xf' failed with exit code 512
(package
  (name "python-hyperkitty")
  (version "1.0.3")


When you look at the contained setup.py of hyperkitty, it has this
defined in setup.py.

# Requirements REQUIRES = [
etc etc

I've seen this in some variations.

The python importer should be extended to include these not very unusual
cases.
-- 
              ng0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#24557: python importer: extend requirements import
  2016-09-28 16:35 bug#24557: python importer: extend requirements import ng0
@ 2016-09-29 11:25 ` Danny Milosavljevic
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2016-09-29 11:25 UTC (permalink / raw)
  To: ng0; +Cc: 24557

On Wed, 28 Sep 2016 16:35:26 +0000
ng0 <ngillmann@runbox.com> wrote:

> One example:
> 
> ng0@shadowwalker ~$ guix import pypi hyperkitty
> 
> Starting download of /tmp/guix-file.yrqmcv
> >From https://pypi.python.org/packages/47/2d/cc2adf4bc0ed7bb4189b3146dde921c9a6ecc33f0f87c96c744d89bab154/HyperKitty-1.0.3.tar.gz...  
>  …1.0.3.tar.gz  1.5MiB              1.1MiB/s 00:01 [####################] 100.0%
> tar: HyperKitty-1.0.3/requirements.txt: Not found in archive
> tar: Exiting with failure status due to previous errors
> guix import: warning: 'tar xf' failed with exit code 512
> (package
>   (name "python-hyperkitty")
>   (version "1.0.3")
> 
> 
> When you look at the contained setup.py of hyperkitty, it has this
> defined in setup.py.
> 
> # Requirements REQUIRES = [
> etc etc
> 
> I've seen this in some variations.
> 
> The python importer should be extended to include these not very unusual
> cases.

This could be done by making the Python importer do something like

  hk/HyperKitty-1.0.3 $ python3 setup.py egg_info
  hk/HyperKitty-1.0.3 $ cat HyperKitty.egg-info/requires.txt 

if (!) the project uses setuptools.

(Unfortunately there seems to be no command line option to directly read the keyword argument "install_requires" by setup.py - although there are command line options for all the other keyword arguments - weird... That's why it's necessary to make it write them egg_info files)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-29 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 16:35 bug#24557: python importer: extend requirements import ng0
2016-09-29 11:25 ` Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).