Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ea183b + 40bbb9b commit b239626Copy full SHA for b239626
1 file changed
setupext.py
@@ -648,8 +648,12 @@ def check(self):
648
def add_flags(self, ext):
649
import numpy
650
651
+ # Ensure that PY_ARRAY_UNIQUE_SYMBOL is uniquely defined for
652
+ # each extension
653
+ array_api_name = 'MPL_' + ext.name.replace('.', '_') + '_ARRAY_API'
654
+
655
ext.include_dirs.append(numpy.get_include())
- ext.define_macros.append(('PY_ARRAY_UNIQUE_SYMBOL', 'MPL_ARRAY_API'))
656
+ ext.define_macros.append(('PY_ARRAY_UNIQUE_SYMBOL', array_api_name))
657
658
659
class CXX(SetupPackage):
0 commit comments