Debian Codegraph @

doc/sphinx/guide/bundle.rst

raw
1
2 .. bundling:
3
4 ********************
5 Bundling with py2exe
6 ********************
7
8 When using periodictable as part of a bundled package, you need to be sure to
9 include the data associated with the tables. This can be done by adding a
10 periodictable entry into the `package_data` property of the distutils setup file::
11
12 import periodictable
13 ...
14 setup(..., package_data=periodictable.package_data, ...)
15
16 If you have a number of packages which add package data (for example, periodic
17 table extensions), then you can use the following::
18
19 import periodictable
20
21 package_data = {}
22 ...
23 package_data.update(periodictable.package_data)
24 ...
25 setup(..., package_data=package_data, ...)