In Debian 7 (Wheezy), the python-setuptools package installs the Distribute fork instead of the standard setuptools. cProfile and hotshot are however included. The standard profile and pstats modules are not included, due to restrictive redistribution clauses in their license that don’t meet the DFSG.This is to reduce conflict between the system Python, and any from-source Python build you might install manually. Third party Python software installed from Debian packages goes into dist-packages, not site-packages. Of course, where at all possible, we try to minimize deviations from upstream, but here is an enumeration of the changes you might encounter on a Debian system (and derivatives, such as Ubuntu).ĭist-packages instead of site-packages. If you want to maintain a Python package, you have to know how the Debian Development works.ĭebian distributions modify upstream Python in a few ways that are important to understand. The Debian Python Policy describes conventions for packaging and distributing Python code in Debian.įeel free to ask any questions on mailing list. Those links list the distribution(s) that ship the given versions of python:ĭistribution(s) shipping python3.8 (none)ĭistribution(s) shipping python3.6 (none)ĭistribution(s) shipping python3.0 (none)ĭistribution(s) shipping python2.5 (none)ĭistribution(s) shipping python2.4 (none)ĭebian Python Policy for Python developers Within the Debian project, Python packages are maintained by individual developers and two main teams:Ĭpython-team maintains the Python compiler/interpreter package.ĭebian Python Team maintains some Python modules and applications.ĭebian-python mailing list with all development discussionsĭebian Bookworm currently contains 3.11, and will likely not ship Python 2, see also Python/FAQ#Python_2_support.ĭebian Bullseye contains 3.9, minimal support for 2.7ĭebian Squeeze contains Python 2.5, 2.6 (the default), 3.1.ĭebian Lenny contains Python 2.4 and 2.5 (the default).ĭebian Unstable contains some 2.x and 3.x, python2 is being removed ĭebian experimental may also contain some (experimental!) packages 2.x and 3.x You can use the 'python-is-python3' or 'python-is-python2' packages to restore an appropriate '/usr/bin/python' symlink for third-party or legacy scripts. No packaged scripts should depend on the existence of '/usr/bin/python': if they do, that is a bug that should be reported to Debian. NOTE: Debian 11 (bullseye) has removed the "python" package and the '/usr/bin/python' symlink due to the deprecation of Python 2. Here is team policy for using git for team packages. Please also refer to the packaging style guide and Python Packaging wiki pages.Īs of we now maintain all of our packages in Git. see NeuroDebian VM page for easy way to start) Windows and OS X) can also benefit from this integrative effort by means of virtualization (e.g. The latter is similar to Java.Īs such, with hundreds of Python modules and multiple versions of Python supported, Debian is the largest "integrated Python distribution". Therefore, software written in pure Python can be distributed as source code or as compiled bytecode. Extension modules can also be written in C, which are distributed as. Python compiles and writes bytecode *.pyc files alongside the *.py sources. It is usually compiled into platform-independent bytecode files to increase performance. Software written in the Python programming language is executed by the Python interpreter. You might also be interested in the Python wiki, the Python FAQ, and the online documentation. You can begin with the DebianWomen/PythonTutorial or the official online tutorial if you want to get started programming in Python. Python is an important part of the Debian ecosystem. It may also provide additional versions, as well as tons of third party packages. Debian provides the latest stable Python 3 release it also provides the latest stable Python 2 release, but Python 2 is unsupported by the Python Foundation since and is being removed as of Debian 11 (Bullseye). Python, the high-level, interactive object oriented language, includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Debian Python Policy for Python developers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |