Skip to content

Commit

Permalink
Merge pull request #6 from lsst/tickets/DM-9190
Browse files Browse the repository at this point in the history
DM-9190: Cleanup pybind11 remaining code
  • Loading branch information
Pim Schellart committed Apr 6, 2017
2 parents 89126b0 + faf8efb commit 6174d4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion python/lsst/display/ds9/SConscript
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- python -*-
from lsst.sconsUtils import scripts
scripts.BasicSConscript.pybind11(['_xpa'])
scripts.BasicSConscript.pybind11(['xpa'], addUnderscore=False)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the GNU General Public License along with this program. If not,
* see <https://www.lsstcorp.org/LegalNotices/>.
*/
#include <pybind11/pybind11.h>
#include "pybind11/pybind11.h"

#include "xpa.h"
#include "lsst/pex/exceptions/Runtime.h"
Expand Down Expand Up @@ -145,8 +145,9 @@ void reset() { myXPA::get(true); }

} // <anonymous>

PYBIND11_PLUGIN(_xpa) {
py::module mod("_xpa", "Simple interface to the xpa routines used to communicate with ds9");
PYBIND11_PLUGIN(xpa) {
py::module::import("lsst.pex.exceptions");
py::module mod("xpa", "Simple interface to the xpa routines used to communicate with ds9");

py::class_<xparec> cls(mod, "xparec");
cls.def(py::init<>());
Expand Down
5 changes: 0 additions & 5 deletions python/lsst/display/ds9/xpa.py

This file was deleted.

0 comments on commit 6174d4c

Please sign in to comment.