Message262446
(Obligatory recommendation that you use Cython rather than ctypes, especially if you're going to require your users to have a compiler handy - in general this isn't recommended on Windows at all; make sure you distribute wheels if you want to make your users' lives easiest.)
I haven't tested this, but I believe you want to specify your libraries with the `libraries` parameter, not the `extensions` parameter:
LIBRARIES = [
('my_lib', {'sources': ['my_lib.c'], 'include_dirs': ['dirs', 'if', 'you', 'want'], 'macros': ['DEFINES', 'IF', 'YOU', 'WANT']})
]
setup(
...
libraries=LIBRARIES,
...
)
Then you need to ensure build_clib is run to produce it. I'd imagine that will just happen, but I could be wrong.
Again, I haven't tried this myself, but it seems to be the right way to build a regular library. |
|
Date |
User |
Action |
Args |
2016-03-25 17:33:56 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tim.golden, docs@python, zach.ware, Buraddin Ibn-Karlo |
2016-03-25 17:33:56 | steve.dower | set | messageid: <1458927236.14.0.715075869102.issue26629@psf.upfronthosting.co.za> |
2016-03-25 17:33:56 | steve.dower | link | issue26629 messages |
2016-03-25 17:33:55 | steve.dower | create | |
|