Closed tastyminerals closed 4 years ago
Two things.
First, you should depend on autowrap:python
. It doesn't make sense to autowrap for multiple languages at once.
Second, autowrap:python
right now defaults to the pyd backend, and due to how pyd works, you're going to have to select a subconfiguration for your Python version, or the env
configuration for just using what's in the environment (i.e. your current virtualenv). So:
dependency "autowrap:python" version="~>0.5.2"
and either:
subConfiguration "autowrap:python" "python37"
(assuming you have Python 3.7), or:
subConfiguration "autowrap:python" "env"
I recommend "env".
I am obviously doing something wrong. I want to make a small D library available for Python. I followed the README and created a dub project with just one
source/app.d
file containing:dub.sdl
Issuing
dub build
gives me the following error.