Python static library, with default modules like "os".

Discussion in 'Python' started by serengeor, Mar 25, 2011.

  1. serengeor

    serengeor

    Joined:
    Sep 20, 2010
    Messages:
    5
    Likes Received:
    0
    I googled a lot but most of the threads got either no answers or they got something different than what I need.

    How would I build static python library that I could link with and use all default functionality?
    I build it like it was given in the read-me and it built "libpython2.7.a", but when I link it with my app and try to import os module it gives me something like:"No module named site".
    What do I need to do in order to achieve this?
    I could use python without the module but than it looses so much of functionality :guru:

    I have done this before and I remember there was some sort of flag to set but I can't remember.

    Please help asap :stupido3:
     
    serengeor, Mar 25, 2011
    #1
    1. Advertisements

  2. serengeor

    serengeor

    Joined:
    Sep 20, 2010
    Messages:
    5
    Likes Received:
    0
    bump :/
     
    serengeor, Mar 25, 2011
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bruce .J Sam
    Replies:
    0
    Views:
    2,163
    Bruce .J Sam
    Jun 16, 2005
  2. gouqizi.lvcha@gmail.com

    Dynamic Library or Static Library under Linux

    gouqizi.lvcha@gmail.com, May 9, 2005, in forum: C++
    Replies:
    6
    Views:
    1,162
    red floyd
    May 10, 2005
  3. free2cric@yahoo.com
    Replies:
    2
    Views:
    7,005
    Maett
    May 16, 2005
  4. iceColdFire

    Static library Vs. Dynamic library

    iceColdFire, May 17, 2005, in forum: C++
    Replies:
    3
    Views:
    17,291
  5. Thomas Linden

    static compiled python modules

    Thomas Linden, Jan 9, 2005, in forum: Python
    Replies:
    2
    Views:
    813
    Thomas Linden
    Jan 10, 2005
  6. Patrick Kowalzick
    Replies:
    5
    Views:
    707
    Patrick Kowalzick
    Mar 14, 2006
  7. Even

    static library and dynamic library

    Even, Oct 18, 2007, in forum: C Programming
    Replies:
    6
    Views:
    816
    Mark McIntyre
    Oct 20, 2007
  8. DJ Stunks
    Replies:
    0
    Views:
    467
    DJ Stunks
    Feb 10, 2007
Loading...