Details
-
Type:
Improvement
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:None
-
Team:SQuaRE
Description
As noted in RFC-47, the utils package includes a function utils::eups::productDir. This is only used by a few tests and examples in afw. We don't seem to have a strong need to support this for C++ code and we would prefer that it be python-only.
I am somewhat nervous about this change, since I find it very useful to have unit tests and even examples run without arguments. The afw tests can probably be fixed by moving some tests to python and deleting redundant tests. If not, then I am not happy with this change.
I think we'll just have to live with C++ examples requiring command-line arguments. However, I suggest checking whether the examples are still needed, and whether they could be rewritten in Python.
Examples can have command-line arguments, but unit tests must not.
As we start building more Pythonic and hence complex wrappers around C++, testing at the C++ level may become more important. I wouldn't want to rule out finding package/product directories from C++.