Add sampleData dir to setup packages

This commit is contained in:
shekhar-cis 2022-10-10 19:23:43 +05:30
parent 0b8e024c29
commit 3f561057be
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -74,6 +74,13 @@ if __name__ == "__main__":
'pybitmessage.pyelliptic',
'pybitmessage.storage'
]
package_data = {'': [
'bitmessageqt/*.ui', 'bitmsghash/*.cl', 'sslkeys/*.pem',
'translations/*.ts', 'translations/*.qm', 'default.ini', 'sql/*.sql',
'images/*.png', 'images/*.ico', 'images/*.icns',
'bitmessagekivy/main.kv', 'bitmessagekivy/screens_data.json',
'bitmessagekivy/kv/*.kv'
]}
if sys.version_info[0] == 3:
packages.extend(
@ -85,6 +92,7 @@ if __name__ == "__main__":
if os.environ.get('INSTALL_TESTS', False):
packages.extend(['pybitmessage.mock', 'pybitmessage.backend', 'pybitmessage.bitmessagekivy.tests'])
package_data[''].extend(['bitmessagekivy/tests/sampleData/*.dat'])
# this will silently accept alternative providers of msgpack
# if they are already installed
@ -142,11 +150,7 @@ if __name__ == "__main__":
],
package_dir={'pybitmessage': 'src'},
packages=packages,
package_data={'': [
'bitmessageqt/*.ui', 'bitmsghash/*.cl', 'sslkeys/*.pem', 'bitmessagekivy/main.kv',
'bitmessagekivy/kv/*.kv', 'translations/*.ts', 'translations/*.qm', 'default.ini', 'sql/*.sql',
'images/*.png', 'images/*.ico', 'images/*.icns', 'bitmessagekivy/screens_data.json'
]},
package_data=package_data,
data_files=data_files,
ext_modules=[bitmsghash],
zip_safe=False,