Byte-sized RSE: Season 2, Session 8
Python packaging and pip
Session introduction
Steve Crouch, University of Southampton
Jeremy Cohen, Imperial College London
A UNIVERSE-HPC project event
The UNIVERSE-HPC (EP/W035731/1) project is funded through the ExCALIBUR programme and is a collaboration between the universities of Edinburgh, Oxford, Southampton and Imperial College London.
The content of these slides is licensed under CC-BY 4.0 © Jeremy Cohen, Imperial College London and Steve Crouch, University of Southampton..
Session Introduction: Code of Conduct
Our Byte-sized RSE sessions are run under the UNIVERSE-HPC Events Code of Conduct:
https://www.universe-hpc.ac.uk/events/code-of-conduct/
Please familiarise yourself with the Code of Conduct which applies to all activities in relation to byte-sized RSE sessions.
Byte-sized RSE:�Python Packaging
Introduction to packaging
Byte-sized RSE:�Python Packaging
Introduction to packaging
package management tooling works and how to create
your own packages!
Byte-sized RSE:�Python Packaging
Why use packages?
tools
Byte-sized RSE:�Python Packaging
The pip package installation tool
building a dependency tree and installing required packages
requested package
Byte-sized RSE:�Python Packaging
The internals of a Python package
Python package (either source package or wheel)
Python code
Package metadata
(e.g. pyproject.toml)
Licence information
(e.g. LICENCE.md)
General information
(e.g. README.md)
Other files and content…
(Optional) source / compiled code for native extensions
Byte-sized RSE:�Python Packaging
Python package types: Wheels vs source packages
Byte-sized RSE:�Python Packaging
Creating packages
Byte-sized RSE:�Python Packaging
Sharing packages with others
Byte-sized RSE:�Python Packaging
Interactive tutorial
Now over to Steve for the interactive element of the session…
The content of these slides is licensed under CC-BY 4.0 © Jeremy Cohen, Imperial College London, Steve Crouch, University of Southampton
Byte-sized RSE:�Python Packaging