Hi Tymofii,
Welcome to the wonderful world of EasyBuild!
On 08/07/14 08:24, [email protected] wrote:
Dear developers,
I ran into troubles when trying to install EasyBuild via bootstraping under
Cygwin.
That's quite brave!
Can you elaborate a bit why you're looking into using EasyBuild on Cygwin?
As far as I understand the error stems from here:
------------systemtools.py------------
def get_shared_lib_ext():
"""Determine extention for shared libraries
Linux: 'so', Darwin: 'dylib'
"""
shared_lib_exts = {
LINUX: 'so',
DARWIN: 'dylib'
}
os_type = get_os_type()
if os_type in shared_lib_exts.keys():
return shared_lib_exts[os_type]
else:
raise SystemToolsException("Unable to determine extention for shared
libraries,"
"unknown system name: %s" % os_type)
-------------------------------------------
As the error message suggests, 'CYGWIN_NT-5.1' (or, more generally, 'CYGWIN*')
should be
present in shared_lib_exts array.
Is it possible to overcome this difficulty ?
You're exactly right: as far as I know, nobody has tried using EasyBuild
on Cygwin before (or gave up very soon after running into this).
Congratulations, you're not the EasyBuild maintainer for Cygwin. ;-)
To start with making it work (or try it), you'll have to make EasyBuild
Cygwin-aware.
Since the bootstrap pulls in the latest EasyBuild release, installing
EasyBuild this way won't work.
We can't include Cygwin support before it has been tested properly, so
if you want to look into this, you'll need to play around with a
development setup of EasyBuild.
Are you up for that?
How familiar are you with git/GitHub, Python, Cygwin?
In short, here's what I recommend to get started:
0) get a copy of the EasyBuild framework code repository, check out the
develop branch:
git clone [email protected]:hpcugent/easybuild-framework.git
git checkout -b develop origin/develop
If you're unfamiliar with git, you can download the current develop
version directly by downloading and unpacking
https://github.com/hpcugent/easybuild-framework/archive/develop.tar.gz
(but you won't have an easy way of staying up to date).
1) Try running the EasyBuild unit tests, and see what kind of trouble
you run into. Start with the unit tests for systemtools.py specifically:
$ cd easybuild-framework
$ python test/framework/systemtools.py
...........
----------------------------------------------------------------------
Ran 11 tests in 3.871s
OK
To add initial Cygwin support, dive into easybuild/tools/systemtools.py,
and try extending the code to make it Cygwin aware.
Let us know how that turns out, or if you have any further questions.
regards,
Kenneth