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

          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

          主站蜘蛛池模板: 万荣县| 阳朔县| 甘洛县| 拜泉县| 松滋市| 宁陵县| 平顶山市| 始兴县| 鄂托克前旗| 左云县| 东兴市| 鹤岗市| 齐齐哈尔市| 商城县| 廉江市| 曲松县| 库尔勒市| 大同县| 宁夏| 综艺| 桃园市| 蓝田县| 玉树县| 赤水市| 佛山市| 霍州市| 云林县| 阳信县| 武平县| 都匀市| 乐平市| 富宁县| 石狮市| 礼泉县| 西乌珠穆沁旗| 雅江县| 司法| 克东县| 荥阳市| 来凤县| 应用必备|