-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
A better upgrade path from distribute #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I've created a new branch 'distribute-legacy' which contains an empty package for 'distribute 0.7' which depends on 'setuptools>=0.7'. I've confirmed that this package works to upgrade an existing Distribute 0.6 installation, so I've uploaded this to Downloads for testing by others. This solves (1) through (3) above. Regarding (4), it does leave behind the following files:
So unless I hear otherwise, I'll assume these lingering metadata files will not be an issue. Thus, the usage to upgrade distribute 0.6.x to setuptools 0.7 is simply to easy_install distribute 0.7. Will this approach be suitable for providing an easy upgrade path for users of Distribute? What other pitfalls might exist? When should this package be uploaded to PyPI (note that based on the dependency_links, it could be released immediately). One thing this does not allow is a roll-back to Distribute 0.6 (as Distribute 0.6 doesn't allow an installation over setuptools 0.7). This issue would be encountered when re-initializing a virtualenv that's been upgraded. I'm inclined to say that downgrades (including virtualenv re-initialization) are not supported. Comments, feedback, and criticism welcome. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Since then, I've uploaded Distribute 0.7.3 which bundles setuptools 0.8 for bootstrapping purposes. It does support upgrading for older pip clients, but those environments are left without the easy_install script(s). However, it seems this may be the smoothest transition available for older pip clients. Soon, the latest pip will be released and will be recommended for installation prior to upgrading distribute for the best possible experience. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): The latest pip (1.4) supports upgrading Distribute to Setuptools 0.8+. The distribute 0.7 wrapper remains available as a convenience for users wishing to use that technique with easy_install. Any other issues with upgrades should file a separate ticket with the specifics of any challenges encountered. |
use spaces, fixed indentation, format using autopep8
* Create SECURITY.md Signed-off-by: Joyce <[email protected]> * Remove the security contact from the README, as it's now redundant. Closes jaraco/tidelift#3. --------- Signed-off-by: Joyce <[email protected]> Co-authored-by: Joyce <[email protected]>
Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)
Currently, the README indicates that to upgrade from distribute, one must uninstall distribute first. In fact, it may not even say that explicitly enough.
Upgrades from setuptools work nicely. I'd like to explore an approach that will make a nicer transition from distribute as well.
Here's what I have in mind:
Create a new release of distribute 0.7. Installation of distribute 0.7 will:
This ticket is to explore the viability of such an approach.
The text was updated successfully, but these errors were encountered: