You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name "_bits"
targetType "dynamicLibrary"
configuration "osx" {
dependency "autowrap:python" path=".../repos/github/symmetryinvestments/autowrap"
platforms "osx"
subConfiguration "autowrap:python" "env" // the python38 configuration doesn't work for me
}
buildType "debug" {
postBuildCommands "mv lib_bits.dylib _bits.so" platform="osx"
preBuildCommands "rm -f lib_bits.dylib" platform="osx"
preBuildCommands "rm -f _bits.so" platform="osx"
}
test_ex.py
from _bits import Ex, exEquals
print(Ex(1) == Ex(1))
print(exEquals(Ex(1), Ex(1)))
% python3 test_ex.py
False
True
I've tried adding opEquals to the struct. I had a quick look through the autowrap code and couldn't see opEquals anywhere though did find some occurrences of opCmp.
Could you double check if it's missing?
I'm on macos (the latest) + using autowrap cloned from github + dub --version -> DUB version 1.23.0, built on Sep 22 2020.
The text was updated successfully, but these errors were encountered:
atilaneves
added a commit
to atilaneves/autowrap
that referenced
this issue
Oct 27, 2020
I don't see how to get it to work with the default pyd backend of autowrap (which is what autowrap:python is under the covers). I've looked at the docs and I think the only way out there is to define opCmp. A workaround is to use the pynih backend after #270 gets merged.
Hi Atila, I've pared this right down:
ex.d:
app.d:
dub.sdl:
test_ex.py
% python3 test_ex.py
False
True
I've tried adding opEquals to the struct. I had a quick look through the autowrap code and couldn't see opEquals anywhere though did find some occurrences of opCmp.
Could you double check if it's missing?
I'm on macos (the latest) + using autowrap cloned from github + dub --version -> DUB version 1.23.0, built on Sep 22 2020.
The text was updated successfully, but these errors were encountered: