mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-07 22:44:25 +08:00
Support Python 3.11 (#5994)
* remove some more deprecated numpy stuff * workaround for changes to random.shuffle in python 3.11 * fix pickling of rdkit mols in python 3.11 * add py311 build to CI * update py311 CI * remove qt for py311 for the moment * only use the new code with pyversion >=3.11 * use the new logic for all pickle_suites * need to work with older py too
This commit is contained in:
committed by
greg landrum
parent
34489181da
commit
9214d4becb
@@ -31,7 +31,7 @@ python::object SIVToBinaryText(const SparseIntVect<IndexType> &siv) {
|
||||
} // namespace
|
||||
|
||||
template <typename IndexType>
|
||||
struct siv_pickle_suite : python::pickle_suite {
|
||||
struct siv_pickle_suite : rdkit_pickle_suite {
|
||||
static python::tuple getinitargs(const SparseIntVect<IndexType> &self) {
|
||||
return python::make_tuple(SIVToBinaryText(self));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user