Skip to content

fix Xmipp easyblock, use provided install.sh script (REVIEW)#630

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:Xmipp_install_sh
Jun 18, 2015
Merged

fix Xmipp easyblock, use provided install.sh script (REVIEW)#630
boegel merged 3 commits intoeasybuilders:developfrom
boegel:Xmipp_install_sh

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jun 16, 2015

reworked Xmipp easyblock, partially based on the notes by @pescobar in #621

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 16, 2015

This still has some hardcoding in place, so still WIP.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1026/
Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1026/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

Comment thread easybuild/easyblocks/x/xmipp.py Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pescobar: why are you not using $CFLAGS here as defined by EB?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why aren't you?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this, the install,sh script screws up when $CXXFLAGS is passed because it contains spaces >_<

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "$CXXFLAGS" ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried that, the setup.py script being passed CXXFLAGS="$CXXFLAGS" trips over it (the quotes)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tried escaping the spaces?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean without using quotes at all? 😲

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like you do for java_home, but os.getenv('CXXFLAGS').replace(' ', '\ ') ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried it:

--> ./setup.py -j 16 configure ... MPI_CC=mpicc CCFLAGS=-O2\ -march=native MPI_CXX=mpicxx ...
Traceback (most recent call last):
  File "./setup.py", line 421, in <module>
    exec(assign) # Take options from command line, override options file, be carefull with exec   
  File "<string>", line 1
    CXXFLAGS = "-O2\"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, using Python list syntax works (see http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/HowToInstall#Windows):

'CXXFLAGS=%s' % str(os.getenv('CXXFLAGS').split(' ')).replace(' ', ''),

nuts, but it does the job :)

…nstead; use MPICXX for MPI linker, set $PYTHONPATH via Xmipp module
@boegel boegel changed the title fix Xmipp easyblock, use provided install.sh script (WIP) fix Xmipp easyblock, use provided install.sh script (REVIEW) Jun 17, 2015
@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1029/
Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1029/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 17, 2015

@JensTimmerman: please review?

@JensTimmerman
Copy link
Copy Markdown

@boegel please fix your own remarks first?

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1033/
Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1033/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@JensTimmerman
Copy link
Copy Markdown

good for me

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 18, 2015

Thanks for the review @JensTimmerman!

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 18, 2015

And thanks @pescobar for raising the issues you had with this in #621, and kick-starting a better alternative.

Going in!

boegel added a commit that referenced this pull request Jun 18, 2015
fix Xmipp easyblock, use provided install.sh script (REVIEW)
@boegel boegel merged commit 3d4726e into easybuilders:develop Jun 18, 2015
@boegel boegel deleted the Xmipp_install_sh branch June 18, 2015 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants