-
Committer:
Geert Vanderkelen
-
Date:
2012-06-08 08:08:06 UTC
-
Revision ID:
geert.vanderkelen@oracle.com-20120608080806-hr74usp52bpi84w0
WL#6250: Facilitate the creation of source and built distributions
o Updating license text in all relevant files:
- The README content was completely replaced with just licensing
information.
- Every source file has the GPLv2 license and the FOSS License Exception
pointing to the MySQL website. Consequently, the file EXCEPTION-CLIENT
was not needed anymore and is removed.
- The LICENSE_com.txt file was added with the commercial license.
o New Distutils commands for creating packages. Every command can be given
with the setup script, `python setup.py <command>`. These commands are
a good base for later adding more distribution types. All commands are
either specific to a particular Python minor version or major version (
that is Python 2.x or Python 3.x).
- sdist_gpl: GPLv2 distribution created in a folder in dist/. This is
the base command for other GPLv2 source distributions.
- bdist_com: Commercial distribution created in a folder in dist/. This
the base command for other commercial built distributions. Before
the source byte-compiled and removed, the GPL license is removed.
- sdist_gpl_msi: Based on command sdist_gpl, it creates a Windows
Installer installing a source distribution using WiX v3.5 (see
support/MSWindows).
- bdist_com_msi: Based on command bdist_com, it creates a Windows
Installer installing a commercial built distribution
using WiX v3.5 (see support/MSWindows).
- sdist_gpl_rpm: Based on command sdist_gpl, it creates an architecture
independent, but Python version specific, source distribution
using a RPM spec file (see support/RPM).
- bdist_com_rpm: Based on command bdist_com, it creates a architecture
independent, but Python version specific, built distribution
using a RPM spec file (see support/RPM).
- There is an additional command to make Egg, but this proved to be not
working due to the fact that Connector/Python is installed in a folder
or package used by other projects (like MySQL Utilities). We, however,
leave the code as it might be useful later.
- The support/ directory is not part of any distribution and the setup.py
will silently ignore when the extra Distutils commands are not
available.
o The distribution name of the Connector/Python (metasetupinfo.py) has
changed from MySQL-Connector-Python to MySQL_Connector_Python to avoid
problems installing using easy_install and others.
o The docs/ directory now contains placeholder files for various
documentation formats which will be part of the distribution later. We
added these to facilitate the development and testing of the extra
Distutils commands.
o We removed the support/make_release.py script because we now use the
Distutils.
o The file _version.py has been renamed to version.py so it can be imported
without to much problems as it is also part of the distributions.