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
    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. Advertising

  2. serengeor

    serengeor

    Joined:
    Sep 20, 2010
    Messages:
    5
    bump :/
    serengeor, Mar 25, 2011
    #2
    1. Advertising

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:
    1,930
    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:
    819
    red floyd
    May 10, 2005
  3. free2cric@yahoo.com
    Replies:
    2
    Views:
    6,484
    Maett
    May 16, 2005
  4. iceColdFire

    Static library Vs. Dynamic library

    iceColdFire, May 17, 2005, in forum: C++
    Replies:
    3
    Views:
    17,021
  5. Patrick Kowalzick
    Replies:
    5
    Views:
    459
    Patrick Kowalzick
    Mar 14, 2006
Loading...

Share This Page