-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from lsst/tickets/DM-25877
DM-25877: Change pybind11 to use a single importable module
- Loading branch information
Showing
31 changed files
with
334 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* LSST Data Management System | ||
* See COPYRIGHT file at the top of the source tree. | ||
* | ||
* This product includes software developed by the | ||
* LSST Project (http://www.lsst.org/). | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the LSST License Statement and | ||
* the GNU General Public License along with this program. If not, | ||
* see <https://www.lsstcorp.org/LegalNotices/>. | ||
*/ | ||
|
||
#ifndef PYTHON_LSST_SPHGEOM_SPHGEOM_H | ||
#define PYTHON_LSST_SPHGEOM_SPHGEOM_H | ||
|
||
namespace lsst { | ||
namespace sphgeom { | ||
|
||
template <typename Pybind11Class> | ||
void defineClass(Pybind11Class &cls); | ||
|
||
} // sphgeom | ||
} // lsst | ||
|
||
#endif // PYTHON_LSST_SPHGEOM_SPHGEOM_H |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
from lsst.sconsUtils import scripts | ||
scripts.BasicSConscript.pybind11([ | ||
'angle', | ||
'angleInterval', | ||
'box', | ||
'box3d', | ||
'chunker', | ||
'circle', | ||
'convexPolygon', | ||
'curve', | ||
'ellipse', | ||
'htmPixelization', | ||
'interval1d', | ||
'lonLat', | ||
'matrix3d', | ||
'mq3cPixelization', | ||
'normalizedAngle', | ||
'normalizedAngleInterval', | ||
'orientation', | ||
'pixelization', | ||
'q3cPixelization', | ||
'rangeSet', | ||
'region', | ||
'relationship', | ||
'unitVector3d', | ||
'utils', | ||
'vector3d', | ||
], addUnderscore=False) | ||
|
||
scripts.BasicSConscript.pybind11( | ||
["_sphgeom"], | ||
extraSrc={ | ||
"_sphgeom": [ | ||
"_angle.cc", | ||
"_angleInterval.cc", | ||
"_box.cc", | ||
"_box3d.cc", | ||
"_chunker.cc", | ||
"_circle.cc", | ||
"_convexPolygon.cc", | ||
"_curve.cc", | ||
"_ellipse.cc", | ||
"_htmPixelization.cc", | ||
"_interval1d.cc", | ||
"_lonLat.cc", | ||
"_matrix3d.cc", | ||
"_mq3cPixelization.cc", | ||
"_normalizedAngle.cc", | ||
"_normalizedAngleInterval.cc", | ||
"_orientation.cc", | ||
"_pixelization.cc", | ||
"_q3cPixelization.cc", | ||
"_rangeSet.cc", | ||
"_region.cc", | ||
"_relationship.cc", | ||
"_unitVector3d.cc", | ||
"_utils.cc", | ||
"_vector3d.cc", | ||
] | ||
}, | ||
addUnderscore=False | ||
) |
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
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
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
Oops, something went wrong.