ppouliot / puppet-openstack_hyper_v

A starting point for building Windows/Hyper-V OpenStack Compute nodes
Other
6 stars 4 forks source link

Python dependecy refactoring #17

Closed luisfdez closed 11 years ago

luisfdez commented 11 years ago

Hi Peter,

First of all, do not merge! hehe, it's not yet ready.

This is a big refactoring for handling the python dependencies. They key points are basically:

What do you think about it? The advantage of this option is that we can reuse a lot of code for each module and it's still flexible enough to launch post-installation scripts like the ones needed by pywin32.

Please, take a look and... show me you feedback!

Saludos!

luisfdez commented 11 years ago

One piece that is missing and I'll push is a refactoring of "download" to let the caller specify the full path of the destination. I'll wait for your feedback before updating the pull.

luisfdez commented 11 years ago

Hi Peter,

I've updated the request. I've managed to make the installation of python dependencies idempotent, so they're not executed if they're already there, maybe it's not the best approach but I think a good beginning for the first version.

It needs more testing and refactoring, but it's a good step forward.

... take a look and test it if you have time or merge it.

The rest of the week I'll continue improving this and other refactoring. Also, I want to get ride of the classes that install optional tools like notepad++, chrome, etc, is it ok for you?

Cheers, Luis

luisfdez commented 11 years ago

More refactoring and some improvements :)...

Copying the commit message:

luisfdez commented 11 years ago

Uop... sorry for the close/reoponed changes...

luisfdez commented 11 years ago

Now, I'm focused on extracting as much parameters as possible to allow the user to specify the sources easily. Anyway, you can merge the current version.

ppouliot commented 11 years ago

Merging it in.

p