Merged
Conversation
ac47c6a to
34d978a
Compare
Member
|
You also need to edit |
Member
Author
|
thanks @adamjstewart .
apparently, we already have |
74572ae to
774e3a3
Compare
1. remove import CudaPackage which is not needed anymore 2. mention CudaPackage and OctavePackage in packaging guide 3. adjust OctavePackageTemplate 4. add clue file for Octave build 5. sanity check on self.prefix
93c99f1 to
3f16fa8
Compare
adamjstewart
approved these changes
Dec 22, 2017
Member
adamjstewart
left a comment
There was a problem hiding this comment.
This looks pretty solid to me!
| # octave does not like those environment variables to be set: | ||
| os.environ.pop('CC', '') | ||
| os.environ.pop('CXX', '') | ||
| os.environ.pop('FC', '') |
Member
There was a problem hiding this comment.
I'm wondering if it would be better to separate this out into setup_environment.
Member
Author
There was a problem hiding this comment.
minor inconvenience is that we have warnings:
==> Warning: Suspicious requests to set or unset 'CC' found
==> Warning: env.set('CC', join_path(link_dir, compiler.link_paths['cc'])) at /Users/davydden/spack/lib/spack/spack/build_environment.py:146
==> Warning: ---> spack_env.unset('CC') at /Users/davydden/spack/lib/spack/spack/build_systems/octave.py:54
==> Warning: Suspicious requests to set or unset 'CXX' found
==> Warning: env.set('CXX', join_path(link_dir, compiler.link_paths['cxx'])) at /Users/davydden/spack/lib/spack/spack/build_environment.py:149
==> Warning: ---> spack_env.unset('CXX') at /Users/davydden/spack/lib/spack/spack/build_systems/octave.py:55
==> Warning: Suspicious requests to set or unset 'FC' found
==> Warning: env.set('FC', join_path(link_dir, compiler.link_paths['fc'])) at /Users/davydden/spack/lib/spack/spack/build_environment.py:155
==> Warning: ---> spack_env.unset('FC') at /Users/davydden/spack/lib/spack/spack/build_systems/octave.py:56
but I am ok with it.
This was referenced Jan 3, 2018
ch741
pushed a commit
to ch741/spack
that referenced
this pull request
Apr 20, 2018
* add OctavePackage 1. remove import CudaPackage which is not needed anymore 2. mention CudaPackage and OctavePackage in packaging guide 3. adjust OctavePackageTemplate 4. add clue file for Octave build 5. sanity check on self.prefix * use setup_environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EDIT: I think I figure out the installation.
Overriding
uninstallis still tricky as I can't get tooctaveexecutable the same way I did withinstall:produces
I guess I leave this for another time unless someone knows an easy fix.
it's WIP as I am bit confused whyhttps://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/octave/package.py#L234-L241setup_dependent_package()is not called, defined inoctavepackageMaybe I just need to follow
PythonPackagewhich hasand if I understand correctly is being used as
self.python.