A distutils package contains a driver script, setup.py. This is a plain Python file, which, in the most simple case, could look like this:
With this setup.py, and a file demo.c, running
will compile demo.c, and produce an extension module named demo in the build directory. Depending on the system, the module file will end up in a subdirectory build/lib.system, and may have a name like demo.so ordemo.pyd.
No comments:
Post a Comment