Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Daniel Jay Haskin
    @djhaskin987
    Hey guys! I'm here often if anyone needs support using or hacking fpm
    nicoulaj
    @nicoulaj
    when using virtualenv with --virtualenv-install-location /somedir, it installs to /somedir/mypackage. Is there a way to make it drop the mypackage subdirectory ?
    nicoulaj
    @nicoulaj
    another question, is there a way to run some custom commands on the staged files before the package compression ? (to obfuscate some python modules)
    Daniel Jay Haskin
    @djhaskin987
    my recommendation would be to run those commands yourself and make directory structure look exactly the way you want it
    mkdir pkg/
    <put stuff in pkg/>
    now package looks like:
    pkg/usr/bin/foo
    pkg/etc/foo
    pkg/opt/foo/venv/bin/python
    pkg/opt/foo/venv/bin/foo
    ...
    then
    fpm -s dir -t rpm -C pkg
    you obfuscate the python before all this happens. just create a virtualenv and structure your directory how it should look
    nicoulaj
    @nicoulaj
    that kind of defeats the purpose of using fpm, I can just write a specfile in this case
    Daniel Jay Haskin
    @djhaskin987
    not really. It's really easy to set up that directory, you're effectively asking to do this anyway by running custom commands. basically, the answer is no, not using virtualenv as a source.
    i make packages like that all the time.
    mkdir pkg
    cd
    cd pkg
    mkdir -p opt/foo
    cd opt/foo
    nah, I can see the problem
    virtualenvs are hard b/c it's hardlinking a python instance inside.
    nicoulaj
    @nicoulaj
    yes
    Daniel Jay Haskin
    @djhaskin987
    eesh. Well, i know it's not helpful, but I don't think virtualenv lets you run custom command inside, BUT
    there may be something you can do on the rpm generation side, templating the spec file or something. I'd have to look
    nicoulaj
    @nicoulaj
    nice tool anyway
    Daniel Jay Haskin
    @djhaskin987
    what about the --virtualenv-setup-install option?
    @nicoulaj ^^^
    runs python setup.py install after virtualenv is created
    maybe that would be an appropriate place to put your obfuscation anyway?
    in the setup.py file
    nicoulaj
    @nicoulaj
    yeah, I guess that could work
    nicoulaj
    @nicoulaj
    There is no available RPM package of fpm ? It's a bit ironic
    Daniel Jay Haskin
    @djhaskin987
    yes, it is :[
    that is, it is ironic
    Rob Reynolds
    @ferventcoder
    Don't you think?
    Sorry, couldn't resist
    Daniel Jay Haskin
    @djhaskin987
    yea
    Fran Rodríguez
    @ki0
    hello group
    is there any way to use a debian template on fpm-cookery?
    Daniel Jay Haskin
    @djhaskin987
    just responding to this. I don't know.
    Ghost
    @ghost~56cae865e610378809c2c20a
    yeah yeah yeah
    fpm's a great thing when starting up in the beautiful world of package management -- helped (and still does) me alot
    Cheers! and long live Fucking Package Management!
    Ghost
    @ghost~56cae865e610378809c2c20a
    who uses gitter anymore?
    x10an14
    @x10an14
    Quite a lot of different python/Jenkins projects at least
    this one - not so much