python 2.3.1 issues DeprecationWarning for FCNTL when importing tempfile
David Bolen
db3l at fitlinxx.com
Mon Oct 6 18:52:54 EDT 2003
Pierre Rouleau <prouleau at impathnetworks.com> writes:
> The creation of fcntl.pyc is not easy to reproduce. After noticing
> the file presence I was not able to reproduce the creation of the file
> again. I'll try later tonight and will update this thread if i find
> something new.
Just make a dummy module that directly imports fcntl (or even
conditionally as if it were a module that was supposed to work under
Windows or Unix), aka:
try:
import fcntl
except:
pass
And then run Installer's Makespec.py and Build.py on that - you'll
have your fcntl.pyc.
The trick is then figuring out which of your various projects may have
directly or indirectly referenced fcntl somewhere so that Installer
found it when doing its dependency checking. Probably not worth it
though :-)
I think that fixing this either means that Installer needs to better
track case of identified import files during dependency checking, or
that the py_compile module needs to double check the case of files it
is asked to compile when generating default output names.
-- David
More information about the Python-list
mailing list