-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace eups calls with lsst.utils.getPackageDir()
- Loading branch information
Showing
3 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So again, these patches are trying to locate itself. Why should it need an environment variable to be set to locate itself for testing? Couldn't that lead to weird mismatches if a different package has been setup to the one that is expected to be used?
f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked through the scons manual and its not obvious to me what the autotools equiv of src_dir is supposed to be. There are warnings about not using
src_dir
.f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't python know where the test file is located though?
f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Doing it that way would require each file to know it's relative path to the root. The build tool really should provide the path to the root of the source tree.
f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does. Look at # as a prefix in the scons manual
f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And how do you ask that be expanded to a string literal?
Value('#')
?f99ce12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at e.g. http://www.scons.org/doc/1.1.0/HTML/scons-user/x3129.html and http://www.scons.org/doc/1.1.0/HTML/scons-user/x3155.html