File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import sys
3
- import util
3
+ import platform
4
4
5
5
from setuptools import setup , find_packages
6
6
7
+ import util
8
+
9
+ if os .name != "nt" :
10
+ print ("""
11
+ \n The binaries distributed with this version are Windows only,
12
+ - If you are on linux, look at
13
+ github.com/pyqt/python-qt5/wiki/Compiling-PyQt5-on-Ubuntu-12.04.
14
+ - If you are on OS X, look at the OSX specific port:
15
+ github.com/pyqt/python-qt5-mavericks
16
+ """ )
17
+
18
+ sys .exit ()
19
+
20
+ if "64bit" not in platform .architecture ():
21
+ print ("""
22
+ \n The binaries distributed wtih this version are for the
23
+ 64-bit version of Python only.
24
+ """ )
25
+
26
+ sys .exit ()
7
27
8
28
def get_version ():
9
29
repo_dir = os .path .dirname (__file__ )
@@ -73,4 +93,4 @@ def get_readme():
73
93
classifiers = classifiers ,
74
94
package_data = get_package_data (),
75
95
data_files = get_data_files ()
76
- )
96
+ )
You can’t perform that action at this time.
0 commit comments