aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
Commit message (Collapse)AuthorAgeFilesLines
* Python 2.7 compattarek2010-01-241-1/+6
| | | | | | --HG-- branch : distribute extra : rebase_source : f60f3110e0dd27c406f8fc48c4ed49da4dec8cac
* Open zipsafe file in text mode.Martin v. Löwis2009-09-121-1/+1
| | | | | | --HG-- branch : distribute extra : rebase_source : 3215e6d146816dc96a2cb23b6a6fb16fd63e1648
* Replace os.path.walk with os.walk.Martin v. Löwis2009-09-121-2/+4
| | | | | | --HG-- branch : distribute extra : rebase_source : 9bc223da3173d759f3c59eb72138e7405b4384ed
* Fix for http://bugs.python.org/setuptools/issue37 - missingPJ Eby2008-09-111-1/+1
| | | | | | | | __loader__ running under Google App Engine. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4066389
* Fix for http://bugs.python.org/setuptools/issue9 (backport from trunk)PJ Eby2008-08-211-3/+3
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065955
* chmod/test cleanups and Jython compatibility (backport from trunk)PJ Eby2008-01-181-1/+42
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4060062
* Fix "eggsecutables" (such as setuptools' own egg) only being runnablePJ Eby2007-01-241-1/+1
| | | | | | | | with bash-compatible shells. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053540
* Fix problem generating "eggsecutable" header if dist/ dir doesn't exist yet.PJ Eby2006-09-281-1/+1
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052024
* Add support for "eggsecutable" headers: a /bin/sh script that is prependedPJ Eby2006-09-221-8/+49
| | | | | | | | | | | to an .egg file to allow it to be run as a script on Unix-ish platforms. (This is mainly so that setuptools itself can have a single-file installer on Unix, without doing multiple downloads, dealing with firewalls, etc.) (Backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051969
* * Fixed ``AttributeError`` when trying to download a ``setup_requires``PJ Eby2006-07-141-1/+1
| | | | | | | | | | | | | | | | | dependency when a distribution lacks a ``dependency_links`` setting. * Made ``zip-safe`` and ``not-zip-safe`` flag files contain a single byte, so as to play better with packaging tools that complain about zero-length files. * Made ``setup.py develop`` respect the ``--no-deps`` option, which it previously was ignoring. (bug fixes backported from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050659
* Fix bdist_egg not including files in .egg-info subdirectories.PJ Eby2006-06-071-19/+19
| | | | | | | | (merge from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046722
* Backport doc fixes and 2.4-only -m safety check to 0.6 branchPJ Eby2006-04-281-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045791
* Backport 'module' fixes to 0.6PJ Eby2006-04-241-8/+8
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045696
* Split ``get_platform()`` into ``get_supported_platform()`` andPJ Eby2006-04-181-3/+3
| | | | | | | | | | | ``get_build_platform()`` to work around a Mac versioning problem that caused the behavior of ``compatible_platforms()`` to be platform specific. (Backport from 0.7 trunk, rev 45536) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045538
* Don't generate a loader .py file in .egg file for extensions that aren'tPJ Eby2006-03-211-2/+2
| | | | | | | | | actually built. This prevents problems w/customized setups that make some extensions optional (e.g. scipy.distutils). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043201
* Don't compress eggs on Python 2.3, as a possible workaround for 64-bitPJ Eby2006-02-131-7/+7
| | | | | | | | zipimport bug. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042351
* Fixed duplication of scripts inside .egg filesPJ Eby2006-02-131-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042345
* Don't write .py stubs except for actual extensions that don't alreadyPJ Eby2006-01-131-19/+19
| | | | | | | | have them. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042034
* Basic roundtripping support between bdist_wininst and eggs. EasyInstallPJ Eby2005-12-141-21/+21
| | | | | | | | | | | will now recognize when a bdist_wininst .exe wraps a .egg-info style package, and reconstitute it correctly, maintaining the original zip safety flag, if applicable. This still needs support for entrypoint scripts, though, as does the install_scripts command. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041678
* Detect .dll, .so, .dylib and .pyd files that might havePJ Eby2005-11-091-15/+15
| | | | | | | | | been included in a project as data files rather than as Python extensions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041409
* Work around a problem with SuSE Linux's patched install_lib command, byPJ Eby2005-09-031-3/+44
| | | | | | | | figuring out the extension paths without its help. :( --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041234
* Simplify non-root install process and improve Mac OS docs for it. SupportPJ Eby2005-08-231-5/+1
| | | | | | | | | .pth files and legacy packages possibly being symlinks, and ensure that overwrites don't follow the symlink. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041229
* Make easy_install --record strip the RPM root when building RPMs, and havePJ Eby2005-08-221-0/+4
| | | | | | | | | | bdist_egg ignore the RPM root when building an egg. This version now can actually run bdist_rpm to completion, although the resulting RPM will install an egg without a corresponding .pth file. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041226
* Auto-generate namespace __init__.py files for packages without them. ThisPJ Eby2005-08-141-27/+27
| | | | | | | | | | | | is a workaround for packages like 'll-color', which are distributed without 'll/__init__.py', to avoid overwriting ll-core's copy of ll/__init__.py. This allows existing packages that use this sort of kludging to be treated as a crude namespace package, as long as the "real" __init__.py also calls declare_namespace(). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041204
* Update zip-safety scanner to check for modules that might be used asPJ Eby2005-07-121-5/+5
| | | | | | | | | ``python -m`` scripts. Misc. fixes for win32.exe support, including changes to support Python 2.4's changed ``bdist_wininst`` format. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041123
* Enhanced "zip safety" analysis (including scan of win32.exe's) and havePJ Eby2005-07-111-61/+102
| | | | | | | | EasyInstall act on zip safety flags. Add a lot more docs for setuptools. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041115
* First-pass implementation of zippability analysis; scans for impurePJ Eby2005-07-101-39/+80
| | | | | | | | | | distribution or use of __file__/__path__ and selected 'inspect' operations. Currently, the analysis is a bit overconservative; when the runtime is more robust, it should probably allow extensions to be zipped by default. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041114
* Allow EasyInstall to accept a directory containing a setup script as onePJ Eby2005-07-101-2/+2
| | | | | | | | | of its arguments. Fix swapped short option names for --bdist-dir and --dist-dir in bdist_egg. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041110
* Detect and handle conflicts with "unmanaged" packages when installingPJ Eby2005-07-101-4/+45
| | | | | | | | | packages managed by EasyInstall. Also, add an option to exclude source files from .egg distributions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041109
* Fix typos in option specs for bdist_egg.PJ Eby2005-07-091-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041103
* Added ``egg_info`` command to ``setuptools``-based packages. This commandPJ Eby2005-07-061-98/+57
| | | | | | | | | | just creates or updates the "projectname.egg-info" directory, without building an egg. It's used by the ``bdist_egg`` command now, and will be used by the ``test`` and ``develop`` commands later on. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041077
* Fix a problem using bdist_egg with non-setuptools distributions.PJ Eby2005-07-041-5/+5
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041076
* EasyInstall/setuptools 0.5a4: significant new features, including automaticPJ Eby2005-06-271-46/+46
| | | | | | | | | installation of dependencies, the ability to specify dependencies in a setup script, and several new options to control EasyInstall's behavior. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041073
* Make write_stub() a function, so easy_install can use it too.PJ Eby2005-06-151-15/+56
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041067
* Add support for quiet/verbose/dry-run/optimize flags.PJ Eby2005-06-141-8/+8
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041064
* Add 'ez_setup' bootstrap installer. Prep for 0.4a2 release.PJ Eby2005-06-121-16/+16
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041054
* Restructure easy_install as a distutils "Command" object, so that it canPJ Eby2005-06-121-7/+7
| | | | | | | | | | access the distutils configuration and logging infrastructure, and can "inherit" options from a distutils setup script that wants to use it to install its own dependencies. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041052
* Package scripts under EGG-INFO/scripts. Refactor subcommand invocationsPJ Eby2005-06-071-35/+35
| | | | | | | | for less duplication and greater clarity. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041044
* Add "safe_name" and "safe_version" functions to allow sanitizing ofPJ Eby2005-06-051-4/+4
| | | | | | | | | distribution names and versions in arbitrary packages that might be built using EasyInstall. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041040
* Ensure that the distribution name written to PKG-INFO is the same as thePJ Eby2005-05-301-2/+2
| | | | | | | | name you'll use in 'require()' operations for that distribution. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041030
* Reorganize bdist_egg's handling of 'install_data' to better deal with thePJ Eby2005-05-301-10/+51
| | | | | | | | | | | | | | | | | | | | various kludges legacy packages are using to install data in their package directories. Some use absolute paths in 'distribution.data_files', while others create various subclasses of 'install_data', each with their own way of finding out what directory to use! So 'bdist_egg' now does all its 'install_lib' activity before 'install_data', and pokes the desired build directory into a wide variety of places, so that all of the known kludges so far will work correctly. It also checks for absolute paths in 'data_files' (carefully working around other packages' 'data_files' kludges!) and converts them back to relative ones, if they are subpaths of site-packages. Clearly, we need to get the word out about 'package_files' in Python 2.4 and above, and suggest using 'setuptools' for Python 2.3. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041028
* Added options to alter eggs' version number by tagging with the subversionPJ Eby2005-05-291-48/+48
| | | | | | | | | revision number, date, and/or a custom tag. This should make it easier for people to produce e.g. automated nightly builds of eggs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041024
* Handle distributions with ' ' in their namesPJ Eby2005-05-291-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041020
* Add experimental 'install_data' support to 'bdist_egg'. The most commonPJ Eby2005-05-281-26/+26
| | | | | | | | | | | distutils custom command hack in the field is to make 'install_data' put data in with the target packages by changing the --install-data to match --install-lib, so this should let bdist_egg work with more packages "out of the box". --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041016
* Added "AvailableDistributions" class that finds and indexes usablePJ Eby2005-04-031-4/+4
| | | | | | | | | | | | | distributions; this replaces the previous "iter_distributions()" API. Added basic platform support to Distribution and AvailableDistributions so that platform-independent distros as well as local platform-compatible distros are acceptable. The actual platform scheme is currently delegated to distutils.util.get_platform(), but needs to be replaced with a better scheme of some kind, especially for OS X. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041004
* Rough draft of version requirement parser. Make bdist_egg look for aPJ Eby2005-04-021-38/+79
| | | | | | | | | | | | distname.egg-info directory instead of EGG-INFO.in; this will be used later to support development of egg-distributed packages that an application under development expects to 'require()'. (Thanks to Fred Drake for pointing out this use case, and Bob Ippolito for helping me figure out how to support it, although the runtime support doesn't actually exist yet.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040999
* Fix bootstrap loader so extracted files don't have to be on sys.path.PJ Eby2005-03-221-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040993
* Create stub loaders for C extensions, so that the actual dynamic libraryPJ Eby2005-03-221-5/+49
| | | | | | | | can be extracted from the egg. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040992
* Allow user-supplied metadata from EGG-INFO.in directory (directory name canPJ Eby2005-03-211-1/+17
| | | | | | | | be overridden with a command-line option). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040991
* Add python version to egg filename.PJ Eby2005-03-211-2/+3
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040990