MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          公告

          一些零碎的筆記,希望能對你有用處。


          搜索

          •  

          積分與排名

          • 積分 - 597274
          • 排名 - 80

          最新評論

          python+cx_Oracle 操作Oracle

          Posted on 2008-09-27 12:20 leekiang 閱讀(741) 評論(0)  編輯  收藏 所屬分類: python

          How to exclude DLLs from the distribution

          Sometimes, Python extensions require supporting DLLs from the system. One example of this is cx_Oracle, which requires the Oracle client software in order to do its job. Because cx_Oracle.pyd depends on the Oracle OCI library, py2exe's dependency tracking includes the file OCI.dll from the Oracle distribution in the distribution directory.

          However, it is not appropriate to include OCI.dll with your software, as it is specific to the version of the Oracle client software on the target machine, and is not useful in isolation.

          So, you need to tell py2exe to exclude this DLL from the resulting distribution. The dll_excludes option lets you do this (it's documented in the docstring for the py2exe module). It does not work from the command line, but you can include it in your setup.py as described in PassingOptionsToPy2Exe
          setup(
          options = {"py2exe": { "dll_excludes": ["oci.dll"]}},
          ...
          )
          來源:http://www.py2exe.org/index.cgi/ExcludingDlls

          主站蜘蛛池模板: 旬邑县| 神农架林区| 迁西县| 临高县| 炉霍县| 潜山县| 张家界市| 舞阳县| 冀州市| 玉山县| 钟祥市| 岳阳县| 东安县| 怀柔区| 合川市| 黄浦区| 涞水县| 鲜城| 铜川市| 申扎县| 信宜市| 托克托县| 宣化县| 湘乡市| 东丰县| 亚东县| 中方县| 措勤县| 历史| 新丰县| 扬州市| 金溪县| 江津市| 黄大仙区| 安福县| 广昌县| 晋江市| 潢川县| 亚东县| 小金县| 上蔡县|