Skip to Content
Expert Python Programming - Third Edition
book

Expert Python Programming - Third Edition

by Michał Jaworski, Tarek Ziadé, Cody Jackson
April 2019
Intermediate to advanced
646 pages
16h 48m
English
Packt Publishing
Content preview from Expert Python Programming - Third Edition

bdist and wheels

To be able to distribute a prebuilt distribution, distutils provides the build command. This commands compiles the package in the following four steps:

  • build_py: This builds pure Python modules by byte-compiling them and copying them into the build folder.
  • build_clib: This builds C libraries, when the package contains any, using Python compiler and creating a static library in the build folder.
  • build_ext: This builds C extensions and puts the result in the build folder like build_clib.
  • build_scripts: This builds the modules that are marked as scripts. It also changes the interpreter path when the first line was set (using !# prefix) and fixes the file mode so that it is executable.

Each of these steps is a command that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert Python Programming - Fourth Edition

Expert Python Programming - Fourth Edition

Michał Jaworski, Tarek Ziade, Tarek Ziadé

Publisher Resources

ISBN: 9781789808896Other