Register   Login   About   Study   Enterprise   Share
Internet / AI Technology University (ITU/AITU)
Fast Login - available after registration







|

Top Links: >> 80. Technology >> Internet Technology Summit Program >> 9. AI with Python >> 9.1. The Python Tutorial Introduction >> 9.1.1. Python Docs, Lexicon, and Components >> 9.1.1.3. Python Internals
Current Topic: 9.1.1.3.66. Distributing Python Modules
You have a privilege to create a quiz (QnA) related to this subject and obtain creativity score...



Email


distutils-sig@python.org




As a popular open source development project, Python has an active supporting community of contributors and users that also make their software available for other Python developers to use under open source license terms.


This allows Python users to share and collaborate effectively, benefiting from the solutions others have already created to common (and sometimes even rare!) problems, as well as potentially contributing their own solutions to the common pool.


This guide covers the distribution part of the process. For a guide to installing other Python projects, refer to the installation guide.



Note


For corporate and other institutional users, be aware that many organisations have their own policies around using and contributing to open source software. Please take such policies into account when making use of the distribution and installation tools provided with Python.




Key terms





Open source licensing and collaboration


In most parts of the world, software is automatically covered by copyright. This means that other developers require explicit permission to copy, use, modify and redistribute the software.


Open source licensing is a way of explicitly granting such permission in a relatively consistent way, allowing developers to share and collaborate efficiently by making common solutions to various problems freely available. This leaves many developers free to spend more time focusing on the problems that are relatively unique to their specific situation.


The distribution tools provided with Python are designed to make it reasonably straightforward for developers to make their own contributions back to that common pool of software if they choose to do so.


The same distribution tools can also be used to distribute software within an organisation, regardless of whether that software is published as open source software or not.




Installing the tools


The standard library does not include build tools that support modern Python packaging standards, as the core development team has found that it is important to have standard tools that work consistently, even on older versions of Python.


The currently recommended build and distribution tools can be installed by invoking the pip module at the command line:




python -m pip install setuptools wheel twine



Was it clear so far?

Note


For POSIX users (including Mac OS X and Linux users), these instructions assume the use of a virtual environment.


For Windows users, these instructions assume that the option to adjust the system PATH environment variable was selected when installing Python.



The Python Packaging User Guide includes more details on the currently recommended tools.






Reading the Python Packaging User Guide


The Python Packaging User Guide covers the various key steps and elements involved in creating and publishing a project:





How do I??


These are quick answers or links for some common tasks.



? choose a name for my project?


This isn?t an easy topic, but here are a few tips:



  • check the Python Packaging Index to see if the name is already in use


  • check popular hosting sites like GitHub, Bitbucket, etc to see if there is already a project with that name


  • check what comes up in a web search for the name you?re considering


  • avoid particularly common words, especially ones with multiple meanings, as they can make it difficult for users to find your software when searching for it





? create and distribute binary extensions?


This is actually quite a complex topic, with a variety of alternatives available depending on exactly what you?re aiming to achieve. See the Python Packaging User Guide for more information and recommendations.









| Check Your Progress | Propose QnA | Have a question or comments for open discussion?
python -m pip install setuptools wheel twine









Was it clear so far?


Note


For POSIX users (including Mac OS X and Linux users), these instructions assume the use of a virtual environment.


For Windows users, these instructions assume that the option to adjust the system PATH environment variable was selected when installing Python.



The Python Packaging User Guide includes more details on the currently recommended tools.






Reading the Python Packaging User Guide


The Python Packaging User Guide covers the various key steps and elements involved in creating and publishing a project:





How do I??


These are quick answers or links for some common tasks.



? choose a name for my project?


This isn?t an easy topic, but here are a few tips:





? create and distribute binary extensions?


This is actually quite a complex topic, with a variety of alternatives available depending on exactly what you?re aiming to achieve. See the Python Packaging User Guide for more information and recommendations.










| Check Your Progress | Propose QnA | Have a question or comments for open discussion?

Have a suggestion? - shoot an email
Looking for something special? - Talk to me
Read: IT of the future: AI and Semantic Cloud Architecture | Fixing Education
Do you want to move from theory to practice and become a magician? Learn and work with us at Internet Technology University (ITU) - JavaSchool.com.

Technology that we offer and How this works: English | Spanish | Russian | French

Internet Technology University | JavaSchool.com | Copyrights © Since 1997 | All Rights Reserved
Patents: US10956676, US7032006, US7774751, US7966093, US8051026, US8863234
Including conversational semantic decision support systems (CSDS) and bringing us closer to The message from 2040
Privacy Policy