Add sampleData dir to setup packages
This commit is contained in:
parent
0b8e024c29
commit
3f561057be
14
setup.py
14
setup.py
|
@ -74,6 +74,13 @@ if __name__ == "__main__":
|
||||||
'pybitmessage.pyelliptic',
|
'pybitmessage.pyelliptic',
|
||||||
'pybitmessage.storage'
|
'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:
|
if sys.version_info[0] == 3:
|
||||||
packages.extend(
|
packages.extend(
|
||||||
|
@ -85,6 +92,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
if os.environ.get('INSTALL_TESTS', False):
|
if os.environ.get('INSTALL_TESTS', False):
|
||||||
packages.extend(['pybitmessage.mock', 'pybitmessage.backend', 'pybitmessage.bitmessagekivy.tests'])
|
packages.extend(['pybitmessage.mock', 'pybitmessage.backend', 'pybitmessage.bitmessagekivy.tests'])
|
||||||
|
package_data[''].extend(['bitmessagekivy/tests/sampleData/*.dat'])
|
||||||
|
|
||||||
# this will silently accept alternative providers of msgpack
|
# this will silently accept alternative providers of msgpack
|
||||||
# if they are already installed
|
# if they are already installed
|
||||||
|
@ -142,11 +150,7 @@ if __name__ == "__main__":
|
||||||
],
|
],
|
||||||
package_dir={'pybitmessage': 'src'},
|
package_dir={'pybitmessage': 'src'},
|
||||||
packages=packages,
|
packages=packages,
|
||||||
package_data={'': [
|
package_data=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'
|
|
||||||
]},
|
|
||||||
data_files=data_files,
|
data_files=data_files,
|
||||||
ext_modules=[bitmsghash],
|
ext_modules=[bitmsghash],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
|
Reference in New Issue
Block a user