diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 051b9f27..11980a1a 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -391,8 +391,7 @@ jobs: # TODO: Figure out how to get CMake to use Python 3.7.7. # Boost 1.70.0 will only make boost python for 3.7. # CMake finds Python 3.8 on the VM when configuring, then does not find - # a corresponding boost python38 module. As a result PyIlmbase tests are not - # built or run. + # a corresponding boost python38 module. # TODO: Determine why tests hang in Debug job. # TODO: Fix boost script to install from sourceforge. diff --git a/src/python/PyImath/CMakeLists.txt b/src/python/PyImath/CMakeLists.txt index e3cf96c7..df8adbc9 100644 --- a/src/python/PyImath/CMakeLists.txt +++ b/src/python/PyImath/CMakeLists.txt @@ -65,7 +65,6 @@ pyimath_define_module(imath PyImathFrustum.h PyImathFun.h PyImathLine.h - PyImathM44Array.h PyImathMathExc.h PyImathMatrix.h PyImathOperators.h diff --git a/src/python/PyImath/PyImathM44Array.cpp b/src/python/PyImath/PyImathM44Array.cpp deleted file mode 100644 index 94f5b168..00000000 --- a/src/python/PyImath/PyImathM44Array.cpp +++ /dev/null @@ -1,34 +0,0 @@ -// -// SPDX-License-Identifier: BSD-3-Clause -// Copyright Contributors to the OpenEXR Project. -// - -// clang-format off - -#include "PyIlmBaseConfigInternal.h" - -#include "PyImathM44Array.h" -#include "PyImathMatrix.h" -#include "PyImathExport.h" - -namespace PyImath { - -template<> PYIMATH_EXPORT const char* -M44dArray::name() -{ - return "M44dArray"; -} - -template<> PYIMATH_EXPORT IMATH_NAMESPACE::Matrix44 -FixedArrayDefaultValue >::value() -{ - return IMATH_NAMESPACE::Matrix44(); -} -template<> PYIMATH_EXPORT const char* -M44ArrayName::value() -{ - return "M44dArray"; -} - - -} // namespace PyImath diff --git a/src/python/PyImath/PyImathM44Array.h b/src/python/PyImath/PyImathM44Array.h deleted file mode 100644 index ba5a506f..00000000 --- a/src/python/PyImath/PyImathM44Array.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// SPDX-License-Identifier: BSD-3-Clause -// Copyright Contributors to the OpenEXR Project. -// - -// clang-format off - -#ifndef _PyImathM44Array_h_ -#define _PyImathM44Array_h_ - -#include -#include -#include "PyImathOperators.h" - -namespace PyImath { -using namespace boost::python; - - -template struct M44ArrayName { static const char *value(); }; - -template -static void -setM44ArrayItem(FixedArray > &ma, - Py_ssize_t index, - const IMATH_NAMESPACE::Matrix44 &m) -{ - ma[ma.canonical_index(index)] = m; -} - -template -class_ > > -register_M44Array() -{ - class_ > > m44Array_class = FixedArray >::register_("Fixed length array of IMATH_NAMESPACE::M44"); - m44Array_class - .def("__setitem__", &setM44ArrayItem) - ; - - return m44Array_class; -} - - -} // namespace PyImath - -#endif // _PyImathM44Array_h_ diff --git a/src/python/README.md b/src/python/README.md deleted file mode 100644 index d88c4512..00000000 --- a/src/python/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# The PyIlmBase Libraries - -The PyIlmBase libraries provides python bindings for the IlmBase -libraries: - -* **PyIex** - bindings for Iex -* **PyImath** - bindings for Imath -* **PyImathNumpy** - bindings that convert between numpy and Imath arrays - -In addition, the distribution also includes confidence tests: - -* **PyIexTest** -* **PyImathTest** -* **PyImathNumpyTest** - -## Dependencies - -PyIlmBase requires **numpy** to be available to the builder. Install with -your favorite package manager or use a Python virtualenv: - - virtualenv numpy - source numpy/bin/activate - pip install numpy - -## License - -These libraries are covered under the -[BSD-3-Clause](https://www.openexr.com/license.html) license of the -OpenEXR project. - -## Building and Installation - -See the top-level [INSTALL](../INSTALL.md) file for information about -building and installing the OpenEXR libraries. - -