[issue14950] Make packaging.install API less confusing and more extensible

2014-03-12 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14950] Make packaging.install API less confusing and more extensible

2012-06-05 Thread Alexis Metaireau

Alexis Metaireau  added the comment:

Attaching a work in progress file which intend to replace the current 
install.py file. The implementation isn't finished yet but the overall design 
is here.

It comes with four classes:

- Installer which manages the overall installation procedure. It shares a 
distribution cache with the dependency handler so distributions are not 
downloaded / extracted multiple times. The installer is able to install / 
remove single distributions OR distributions with their dependency tree.
- DependencyHandler which takes care about getting the dependencies from either 
the metadata stored in the indexes or inside the distirbutions.
- The DistributionCache class is just a store containing the location of the 
distributions that had been extracted/downloaded. It provides methods to ease 
the work with them (so any external user don't need to care about the state of 
the distribution when requesting it).
- DirectoryMover provides a way to deal with moving/deleting operations with a 
commit/rollback API. The goal is to simplify a lot the current API and to 
provide a reusable tool for other installers. why not putting this in shutil at 
some point.

This file is provided here mostly for feedback, but the work is not finished 
yet.

--
Added file: http://bugs.python.org/file25831/install.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14950] Make packaging.install API less confusing and more extensible

2012-05-31 Thread Éric Araujo

Éric Araujo  added the comment:

BTW I suggest you work off a d2 checkout; I have not ported all changes from 
Montreal sprints to cpython/p7g at the moment.

--
title: packaging.install does not have a clear API. -> Make packaging.install 
API less confusing and more extensible

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com