File: bundle.rst

package info (click to toggle)
python-periodictable 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,068 kB
  • sloc: python: 13,338; makefile: 103; sh: 92; javascript: 7
file content (25 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

.. bundling:

********************
Bundling with py2exe
********************

When using periodictable as part of a bundled package, you need to be sure to
include the data associated with the tables.  This can be done by adding a
periodictable entry into the `package_data` property of the distutils setup file::

    import periodictable
    ...
    setup(..., package_data=periodictable.package_data, ...)

If you have a number of packages which add package data (for example, periodic
table extensions), then you can use the following::

    import periodictable

    package_data = {}
    ...
    package_data.update(periodictable.package_data)
    ...
    setup(..., package_data=package_data, ...)