-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #26278 from davidlange6/pybind11_190328
move to pybind11 parameteset reader as default. fix some buildfiles
- Loading branch information
Showing
8 changed files
with
19 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="FWCore/PythonParameterSet"/> | ||
<use name="FWCore/PyDevParameterSet"/> | ||
<export> | ||
<use name="boost_python"/> | ||
<lib name="1"/> | ||
<use name="py2-pybind11"/> | ||
</export> |
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,9 +1,9 @@ | ||
#ifndef FWCore_Framework_ProcessDescImpl_h | ||
#define FWCore_Framework_ProcessDescImpl_h | ||
|
||
#include "FWCore/PythonParameterSet/interface/PythonProcessDesc.h" | ||
#include "FWCore/PyDevParameterSet/interface/PyBind11ProcessDesc.h" | ||
|
||
using ProcessDescImpl = PythonProcessDesc; | ||
using ProcessDescImpl = PyBind11ProcessDesc; | ||
|
||
#endif | ||
|
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,27 +1,27 @@ | ||
#include "FWCore/ParameterSetReader/interface/ParameterSetReader.h" | ||
#include "FWCore/PythonParameterSet/interface/PythonProcessDesc.h" | ||
#include "FWCore/PythonParameterSet/interface/MakeParameterSets.h" | ||
#include "FWCore/PyDevParameterSet/interface/PyBind11ProcessDesc.h" | ||
#include "FWCore/PyDevParameterSet/interface/MakePyBind11ParameterSets.h" | ||
|
||
std::unique_ptr<edm::ParameterSet> edm::getPSetFromConfig(const std::string &config) { | ||
return PythonProcessDesc(config).parameterSet(); | ||
return PyBind11ProcessDesc(config).parameterSet(); | ||
} | ||
|
||
|
||
//its really the stuff in MakePythonParameterSets that should be in the different namespace | ||
//I'll do that if this setup is ok | ||
std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config, int argc, char* argv[]) { | ||
return edm::boost_python::readConfig(config,argc,argv); | ||
return edm::cmspybind11::readConfig(config,argc,argv); | ||
} | ||
|
||
std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config) { | ||
return edm::boost_python::readConfig(config); | ||
return edm::cmspybind11::readConfig(config); | ||
} | ||
|
||
void edm::makeParameterSets(std::string const& configtext, | ||
std::unique_ptr<ParameterSet> & main) { | ||
edm::boost_python::makeParameterSets(configtext,main); | ||
edm::cmspybind11::makeParameterSets(configtext,main); | ||
} | ||
|
||
std::unique_ptr<edm::ParameterSet> edm::readPSetsFrom(std::string const& fileOrString) { | ||
return edm::boost_python::readPSetsFrom(fileOrString); | ||
return edm::cmspybind11::readPSetsFrom(fileOrString); | ||
} |
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,7 +1,6 @@ | ||
<use name="FWCore/Framework"/> | ||
<use name="FWCore/PythonParameterSet"/> | ||
<use name="FWCore/ParameterSetReader"/> | ||
<use name="boost"/> | ||
<use name="boost_python"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |