distutils - The older version of setuptools, which is now legacy.setuptools - The python package used to create and manage distributable Python packages.Even in this tutorial, I may refer to a distribution as a "package" and when dicussing "packaging" it refers to creating a distributable. This term may be shortened to just "package" which can cause confusion between the other use of the word package which refers to a directory with Python modules. Distributable package - A Python library or application that was pacakged with a setup.py file that is built in to a distributable file that can be published on.The word package also commonly refers to a distributable package. Might have an init.py and/or main.py along with Python modules (.py files). Package - A directory with Python modules files.Module - A Python file (.py) with code, functions, classes, etc.If you need Python, check out my tutorials:īefore going any further, let's look at some terms that might be confusing: See my Python Virtual Environments Tutorial if you need to learn more about virtual environments.Īlso see Python import, sys.path, and PYTHONPATH TutorialĪnd my Python Virtual Environment Tutorial. You can also get started with a simple distutils example from the official documentation. That will ensure you have an isolated environment do not contaminate your system install or any project. If you aren't familiar, read up on virtual environments. I recommend creating a new virtual environment and activating it before testing out any of these examples. We'll look at how import works, how the setup.py file and how to use it to build and install packages. These examples will show you how to create distributable packages. This tutorial will cover setuptools and how to package libraries and applications
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |