all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* help build a python package (odoo)
@ 2016-06-10 15:36 Jovany Leandro G.C
  2016-06-11  0:03 ` Ben Woodcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Jovany Leandro G.C @ 2016-06-10 15:36 UTC (permalink / raw)
  To: guix-devel

Hi,

i started building  package definition:
       
~~~
(define-module (odoo odoo)
  #:use-module ((guix licenses)
		#:select (lgpl3))
  #:use-module ((guix licenses) #:select (lgpl3) #:prefix license:)

  #:use-module (gnu packages)
  #:use-module (gnu packages python)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system python))

(define-public odoo
  (package
    (name "odoo")
    (version "9.0c")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
"http://nightly.odoo.com/9.0/nightly/src/odoo_" version
".20160610.tar.gz")) (sha256
	(base32
	 "171gnax8syrz60iwi3k99di60x24z4f6c3s3wszb5xwgkir0ck7r"))))
    (build-system python-build-system)
    (native-inputs
     `(("python2-setuptools" ,python2-setuptools)))

    (arguments
     `(#:python ,python-2
       #:tests? #f))

    (home-page "http://www.odoo.com")
    (synopsis
     "ERP")
    (description
     "ERP")
    (license license:lgpl3))
  )
~~~

when i run **guix build -L$PWD odoo**
it's started well but stopp

~~~
creating dist
creating 'dist/odoo-9.0rc20160610-py2.7.egg' and adding
'build/bdist.linux-x86_64/egg' to it removing
'build/bdist.linux-x86_64/egg' (and everything under it)
Creating /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/lib/python2.7/site-packages/site.py
Processing odoo-9.0rc20160610-py2.7.egg
creating /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/lib/python2.7/site-packages/odoo-9.0rc20160610-py2.7.egg
Extracting odoo-9.0rc20160610-py2.7.egg
to /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/lib/python2.7/site-packages
Adding odoo 9.0rc20160610 to easy-install.pth file Installing
openerp-server script
to /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/bin Installing
odoo.py script
to /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/bin

Installed /gnu/store/w2abvs6q99xh2qpv77l0r5gsl30wrzpl-odoo-9.0c/lib/python2.7/site-packages/odoo-9.0rc20160610-py2.7.egg
Processing dependencies for odoo==9.0rc20160610
Searching for xlwt
Reading https://pypi.python.org/simple/xlwt/
Download error on https://pypi.python.org/simple/xlwt/: [Errno -2] Name
or service not known -- Some packages may not be found! Couldn't find
index page for 'xlwt' (maybe misspelled?) Scanning index of all
packages (this may take a while) Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno -2] Name or
service not known -- Some packages may not be found! No local packages
or download links found for xlwt error: Could not find suitable
distribution for Requirement.parse('xlwt') phase `install' failed after
102.1 seconds builder for
`/gnu/store/cs5gl3x9kr6nmw441yvv68aqwg2yba8b-odoo-9.0c.drv' failed with
exit code 1 @
build-failed /gnu/store/cs5gl3x9kr6nmw441yvv68aqwg2yba8b-odoo-9.0c.drv
- 1 builder for
`/gnu/store/cs5gl3x9kr6nmw441yvv68aqwg2yba8b-odoo-9.0c.drv' failed with
exit code 1 guix build: error: build failed: build of
`/gnu/store/cs5gl3x9kr6nmw441yvv68aqwg2yba8b-odoo-9.0c.drv' failed
~~~


but if i do manually
~~~
$ guix environment -L$PWD odoo
$ cd odoo-src
$ python setup.py build
$ python setup.py check
~~~

everything works, and download all requirements well *xlwt/simple*

thanks any help

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

* Re: help build a python package (odoo)
  2016-06-10 15:36 help build a python package (odoo) Jovany Leandro G.C
@ 2016-06-11  0:03 ` Ben Woodcroft
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Woodcroft @ 2016-06-11  0:03 UTC (permalink / raw)
  To: Jovany Leandro G.C, guix-devel



On 11/06/16 01:36, Jovany Leandro G.C wrote:
> Hi,
>
> i started building  package definition:

Hi there.

[..]
> Processing dependencies for odoo==9.0rc20160610
> Searching for xlwt
> Reading https://pypi.python.org/simple/xlwt/
> Download error on https://pypi.python.org/simple/xlwt/: [Errno -2] Name
> or service not known -- Some packages may not be found!

This appears to be the problem here. This means that you'll need to add 
"python2-xlwt" as an input of some kind 
(input/native-input/propagated-input) into the package definition. 
Unfortunately, xlwt has not yet been packaged for Guix, so that also 
needs to be added.

[..]

> but if i do manually
> ~~~
> $ guix environment -L$PWD odoo
> $ cd odoo-src
> $ python setup.py build
> $ python setup.py check
> ~~~
>
> everything works, and download all requirements well *xlwt/simple*

This works because the environment has access to the internet and so can 
download it, or it is otherwise available on your system via PYTHONPATH 
or otherwise. I imagine running the same command with "--container" 
would not work. All packages are built without access to the system or 
the internet.

Hope that helps. Good luck.
ben

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

end of thread, other threads:[~2016-06-11  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-10 15:36 help build a python package (odoo) Jovany Leandro G.C
2016-06-11  0:03 ` Ben Woodcroft

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.