I was running into a build problem with Python similar to the one
described in:

    https://github.com/hpcugent/easybuild/issues/23

The cause in my case is that my system does not have any Internet
connectivity and cannot pull anything from the Internet at build time.
I had found this problem report back a few months and for the interim
had just removed dateutil (and paramiko) from the python builds to be
able to progress further.

The patch for dateutil was pretty simple, just including 'six' was
sufficient.  A similar problem occurs with paramiko.  I had to add
'ecdsa' for it.

The patch is:

--start--
--- easyconfigs/p/Python/Python-2.7.3-goolf-1.4.10.eb   2015-02-27 
13:32:10.514412000 -0500
+++ easyconfigs/Python-2.7.3-goolf-1.4.10.eb       2015-03-03 
14:00:39.517219000 -0500
@@ -57,6 +57,9 @@
     ('Cython', '0.17.2', {
         'source_urls': ['http://www.cython.org/release/'],
     }),
+    ('six', '1.9.0', {
+        'source_urls': ['https://pypi.python.org/packages/source/s/six/'],
+    }),
     ('dateutil', '2.1', {
         'source_tmpl': 'python-%(name)s-%(version)s.tar.gz',
         'source_urls': 
['http://pypi.python.org/packages/source/p/python-dateutil/'],
@@ -75,6 +78,9 @@
         'modulename': 'Crypto',
         'source_urls': ['http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/'],
     }),
+    ('ecdsa', '0.13', {
+        'source_urls': ['https://pypi.python.org/packages/source/e/ecdsa/'],
+    }),
     ('paramiko', '1.12.0', {
         'source_urls': ['https://pypi.python.org/packages/source/p/paramiko/'],
     }),
--end--

It looks like this could/should also be applied against all of the
other python-2.7.X easybuild files.  There appear to be some other
inconsistencies in the python-2.7.X easybuild files which could be
normalized.

In my environment I have also updated dateutil from 2.1 to 2.4.0 and
zlib from 1.2.7 to 1.2.8.  For paramiko I may also need other
libraries for gssapi, but that started to get into a larger set of
additional dependencies.

I also see a python-dateutil-2.1-goolf-1.4.10-Python-2.7.3.eb
configuration file.  It looks like this would be redundant with the
current easybuild files, but could serve as a good example for users
building python addons for individual use.

These changes just allow building to complete successfully.  I have
not started testing any applications beyond the build process.

Stuart
-- 
I've never been lost; I was once bewildered for three days, but never lost!
                                        --  Daniel Boone

Reply via email to