Ctypes for static libraries.
Nan Zhang <[email protected]> Mon, 17 Jul 2017 10:42:32 -0700
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <CANrFkEK3rMZfz=zUMe9hEOsaCbRcUzTdV347RWuXUU-i5vMw_A@mail.gmail.com> |
--===============0286223003997797031== Content-Type: multipart/alternative; boundary="001a114a8660a0b7d0055486ed1b" --001a114a8660a0b7d0055486ed1b Content-Type: text/plain; charset="UTF-8" Hi Is it possible to modify Ctypes src code locally to support static libraries for Python (the static library is compiled together with Python interpreter)? Since for special reasons, I have to compile everything into one giant Python blob (including Python interpreter, and user Python .py programs(zip section)). Therefore, I cannot use separate .so libraries during my Python blob running. BTW: Python C extension is not considered here, since my clients' code uses Ctypes to bridge there C code for Python. I don't want to change too much in their side. Nan Zhang Best Regards, --001a114a8660a0b7d0055486ed1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi<div><br></div><div><p style=3D"margin:0px 0px 1em;paddi= ng:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-si= ze:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",He= lvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41)">= Is it possible to modify Ctypes src code locally to support static librarie= s for Python (the static library is compiled together with Python interpret= er)?</p><p style=3D"margin:0px 0px 1em;padding:0px;border:0px;font-variant-= numeric:inherit;font-stretch:inherit;font-size:15px;line-height:inherit;fon= t-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-ali= gn:baseline;clear:both;color:rgb(36,39,41)">Since for special reasons, I ha= ve to compile everything into one giant Python blob (including Python inter= preter, and user Python .py programs(zip section)). Therefore, I cannot use= separate .so libraries during my Python blob running.</p><p style=3D"margi= n:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-stre= tch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helv= etica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;co= lor:rgb(36,39,41)">BTW: Python C extension is not considered here, since my= clients' code uses Ctypes to bridge there C code for Python. I don'= ;t want to change too much in their side.</p><p style=3D"margin:0px 0px 1em= ;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;f= ont-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue&qu= ot;,Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39= ,41)"><br></p><div><div class=3D"gmail_signature"><div dir=3D"ltr"><div><di= v dir=3D"ltr"><div><font color=3D"#888888" size=3D"2">Nan Zhang</font></div= ><font color=3D"#888888"><span style=3D"font-size:13px">Best Regards,</span= ></font><br></div></div></div></div></div> </div></div> --001a114a8660a0b7d0055486ed1b-- --===============0286223003997797031== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============0286223003997797031== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users --===============0286223003997797031==--