Author bwanamarko
Recipients Arfrever, Piotr.Lopusiewicz, amaury.forgeotdarc, brian.curtin, bwanamarko, loewis, meador.inge, plynch76, r.david.murray, tim.golden
Date 2016-02-15.20:12:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455567151.15.0.995106227708.issue14597@psf.upfronthosting.co.za>
In-reply-to
Content
I think I have this issue even after interpreter exits. My setup.py creates a .dll then later loads the dll for testing using ctypes. Subsequent runs of setup.py that would force rebuilding the .dll attempt to delete the old dll first if it exists, but I get permission denied.

Oddly, if I put the load library call inside a function, then, after exiting the interpreter the dll can be deleted.

Windos 7 x64
Python 2.7.10

Sorry if this is by design, a Windows feature, unrelated or the wrong issue. I search SO and these bugs, and only found answers related to unloading dll during script.
History
Date User Action Args
2016-02-15 20:12:31bwanamarkosetrecipients: + bwanamarko, loewis, amaury.forgeotdarc, tim.golden, Arfrever, r.david.murray, brian.curtin, meador.inge, plynch76, Piotr.Lopusiewicz
2016-02-15 20:12:31bwanamarkosetmessageid: <1455567151.15.0.995106227708.issue14597@psf.upfronthosting.co.za>
2016-02-15 20:12:31bwanamarkolinkissue14597 messages
2016-02-15 20:12:30bwanamarkocreate