Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-31721: Rename package to cpputils #1

Merged
merged 8 commits into from Sep 20, 2021
Merged

DM-31721: Rename package to cpputils #1

merged 8 commits into from Sep 20, 2021

Conversation

timj
Copy link
Member

@timj timj commented Sep 10, 2021

This package is the utils package but with all the python-only code
removed from it (see lsst/utils#97). What remains is the C++ code and the pybind11
interfaces to that code.

@timj timj changed the title DM-31721: Rename package to cpputils and remove python code that is still in utils DM-31721: Rename package to cpputils Sep 10, 2021
This package is the utils package but with all the python-only code
removed from it. What remains is the C++ code and the pybind11
interfaces to that code.
This makes it possible for C++ applications that previously used
the utils C++ code to still use it without modification. Changing
to lsst::cpputils requires all the code to change because of the
complexity of forwarding namespaces from the utils package to
the cpputils package through a deprecation period.
Copy link
Contributor

@ktlim ktlim left a comment

Choose a reason for hiding this comment

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

Overall OK.

doc/main.dox Show resolved Hide resolved
ups/cpputils.cfg Outdated
@@ -9,6 +9,6 @@ dependencies = {

config = lsst.sconsUtils.Configuration(
__file__,
headers=["lsst/utils/Utils.h"],
headers=["lsst/cpputils/Utils.h"],
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right. I'm surprised Jenkins worked. Although it would work if you install the symlinks mentioned above.

Copy link
Member Author

Choose a reason for hiding this comment

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

definitely all passed. I don't really understand what that line does because Utils.h is formally deprecated.

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed Utils.h completely and put packaging.h in there instead. I also adjusted afw to stop using Utils.h.

doc/main.dox Outdated Show resolved Hide resolved
include/lsst/utils/Backtrace.h Outdated Show resolved Hide resolved
include/lsst/utils/Backtrace.h Outdated Show resolved Hide resolved
tests/test_getPackageDir.py Outdated Show resolved Hide resolved
timj and others added 5 commits September 17, 2021 16:48
This allows legacy code to still look for lsst::utils
A symlink is used per file. This makes it explicit which
include files are supporting deprecation.

Also, directory symlinks are not currently supported
by sconsUtils install.
Has not been used for 3 years since DM-10384.
@timj timj merged commit 6e05de7 into master Sep 20, 2021
@timj timj deleted the tickets/DM-31721 branch September 20, 2021 20:00
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.

None yet

2 participants