diff --git a/modules/mol/base/pymod/export_entity.cc b/modules/mol/base/pymod/export_entity.cc
index d01cd047290d7e8e88f9b454d68fd57082afc09d..bb55d9bd68234616da9d4bf69d646adccf559d71 100644
--- a/modules/mol/base/pymod/export_entity.cc
+++ b/modules/mol/base/pymod/export_entity.cc
@@ -100,6 +100,8 @@ PyObject* get_pos1(EntityHandle& entity)
   return get_pos2(entity,true);
 }
 
+#endif
+
 geom::Mat4 depr_get_transformation_matrix(const EntityHandle& eh)
 {
   return eh.GetTransformationMatrix();
@@ -110,7 +112,6 @@ bool depr_is_transformation_identity(const EntityHandle& eh)
   return eh.IsTransformationIdentity();
 }
 
-#endif
 } // ns
 
 void export_Entity()