rubik / pyg

A Python Package Manager
http://pyg-installer.co.nr
MIT License
21 stars 3 forks source link

Zicbee Pack #90

Closed rubik closed 13 years ago

rubik commented 13 years ago

Pyg should be able to create Packs... (See #85)

fdev31 commented 13 years ago

About the name, why not just .zip ? A file containing a folder with package's name, itself containing two files:

rubik commented 13 years ago

Yes! I overcomplicated things, .zip is just right! Only one more thing, it is not clear to me what run.py should contain. How do we know what to run?

fdev31 commented 13 years ago

Just clone https://github.com/fdev31/zicbee-workshop and run "manage" code, most interesting is: https://github.com/fdev31/zicbee-workshop/blob/master/_genexecutables.py which is a base... For the paths to look for the ".egg" we may discuss... We could also make a run command that could rewrite itself this way:

./run.py --pkg-egg ~/myapps/myprogram.egg

and even

./run.py --pkg-install

:)

fdev31 commented 13 years ago

I could have fun writing the launcher & his generator but I'm little out of time right now :P If you get a working egg generation that could replace mine I'll eventually dive into it :)

rubik commented 13 years ago

Thank you for the links, I didn't see that there was _genexecutable.py too! :) pyg.pack.Packer actually works well, only launcher generation is missing! We could just add to sys.path our egg. The zipimport module is included in stdlib from version 2.3, it wouldn't be difficult.

fdev31 commented 13 years ago

First bug ;)

% python pyg/pack.py zicbee-lib

zicbee-lib:
        Retrieving data for zicbee-lib [100% - 22.1 Kb / 22.1 Kb]              
        Writing data into zicbee-lib-0.7.3.tar.gz
        zicbee-lib downloaded successfully
        Looking for zicbee-lib dependencies
Finished processing dependencies
Adding packages to the bundle
rubik commented 13 years ago

But zicbee-lib does not have a requires.txt file! :)

fdev31 commented 13 years ago

Because It has no requirement :P

rubik commented 13 years ago

LOL so what is the bug? XD

rubik commented 13 years ago

I've just realized that entry_points is formatted wrongly and spec/depend has a wrong version. I'll fix that now.

rubik commented 13 years ago

OOps double commit is due to the automatic merge...

fdev31 commented 13 years ago

If I need some kind of advanced configuration (to help the creation of the .py file or to auto-remove files from the archive for instance) would you recommend sticking to .ini format or is it possible to ask the user for values and/or propose an alternative configuration file ?

rubik commented 13 years ago

So, if we decided to postpone advanced features to next release, I think I can close this issue and open a new one later.

fdev31 commented 13 years ago

Just set the feat. For the release after... It's not working yet...

Le 14 juil. 2011 20:34, "rubik" < reply@reply.github.com> a crit :

So, if we decided to postpone advanced features to next release, I think I can close this issue.

Reply to this email directly or view it on GitHub: https://github.com/rubik/pyg/issues/90#issuecomment-1573896

rubik commented 13 years ago

So I'll open a new issue...