Skip to content

Commit 6d032bc

Browse files
committed
Including qt.conf data file
1 parent cd9ff6e commit 6d032bc

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

PyQt5/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path
3232

3333
# Expose versions
34-
version_info = (0, 1, 2) # Version of this release
34+
version_info = (0, 1, 3) # Version of this release
3535
version = "%s.%s.%s" % version_info
3636
__version__ = version
3737

qt.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Paths]
2+
Prefix = C:/Python27/Lib/site-packages/PyQt5
3+
Binaries = C:/Python27/Lib/site-packages/PyQt5

setup.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def get_version():
1212

1313

1414
def get_package_data():
15+
"""Include all files from all sub-directories"""
1516
package_data = dict()
1617

1718
package_data['PyQt5'] = list()
@@ -28,6 +29,10 @@ def get_package_data():
2829
return package_data
2930

3031

32+
def get_data_files():
33+
return [('', ['qt.conf'])]
34+
35+
3136
def get_readme():
3237
with open('README.txt') as f:
3338
readme = f.read()
@@ -58,5 +63,6 @@ def get_readme():
5863
packages=find_packages(),
5964
zip_safe=False,
6065
classifiers=classifiers,
61-
package_data=get_package_data()
66+
package_data=get_package_data(),
67+
data_files=get_data_files()
6268
)

0 commit comments

Comments
 (0)