Skip to content

Commit be22609

Browse files
committed
Updated linux installers and README.
1 parent d7e0c77 commit be22609

3 files changed

Lines changed: 42 additions & 15 deletions

File tree

cefpython/cef3/linux/installer/README.txt.template

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1-
1. To install CEF Python 3 type:
1+
1. To install CEF Python 3 package type:
22

3-
sudo python setup.py install
3+
sudo python setup.py install
44

5-
This will install the cefpython3 package to
6-
/usr/local/lib/python2.7/dist-packages/
5+
This will install the cefpython3 package to
6+
/usr/local/lib/python2.7/dist-packages/
77

8-
2. In the same directory that setup.py resides there is
8+
2. It may also be required to install "libnss3" and "libnspr4" dependencies:
9+
10+
sudo apt-get install libnss3-1d libnspr4-0d
11+
12+
3. On Ubuntu 12 everything should work out of the box. But on Ubuntu 13,
13+
Ubuntu 14, Fedora 20 and possibly some other OS'es there may be issues
14+
with wrong version of libudev library. For example to fix it on Ubuntu
15+
64bit it is required to create a symbolic link "libudev.so.0" to
16+
the "libudev.so.1" library with this command:
17+
18+
cd /lib/x86_64-linux-gnu/
19+
sudo ln -sf libudev.so.1 libudev.so.0
20+
21+
The path to libudev.so.1 may be different on other OS'es, see:
22+
* Ubuntu, Xubuntu, Mint - /lib/x86_64-linux-gnu/
23+
* SUSE, Fedora - /usr/lib64/
24+
* Arch, Fedora 32bit - /usr/lib/
25+
* Ubuntu 32bit - /lib/i386-linux-gnu/
26+
27+
4. In the same directory that setup.py resides there is
928
an examples/ directory, run some example scripts from there:
1029

11-
cd examples/
12-
python wxpython.py
13-
python kivy_.py
30+
cd examples/
31+
python wxpython.py
32+
python kivy_.py
1433

15-
cd wx/
16-
python sample1.py
17-
python sample2.py
18-
python sample3.py
34+
cd wx/
35+
python sample1.py
36+
python sample2.py
37+
python sample3.py
1938

2039
Note:
2140
Examples directory can also be found in the cefpython3 package directory:

cefpython/cef3/linux/installer/make-deb.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
BITS = platform.architecture()[0]
2525
assert (BITS == "32bit" or BITS == "64bit")
2626
ARCHITECTURE = "i386" if (BITS == "32bit") else "amd64"
27+
IF BITS == "32bit":
28+
LINUX_BITS = "linux32"
29+
ELSE:
30+
LINUX_BITS = "linux64"
2731

2832
PACKAGE_NAME = "cefpython3"
2933
PYTHON_NAME ="python2.7" # Directory name in deb archive
@@ -296,8 +300,8 @@ def main():
296300

297301
# Paths
298302
global DISTUTILS_SETUP
299-
DISTUTILS_SETUP = INSTALLER+"/"+PACKAGE_NAME+"-"+args.version+"-linux-"+\
300-
BITS+"-setup"
303+
DISTUTILS_SETUP = INSTALLER+"/"+PACKAGE_NAME+"-"+args.version+"-"+\
304+
LINUX_BITS+"-setup"
301305

302306
remove_directories_from_previous_run()
303307
create_distutils_setup_package()

cefpython/cef3/linux/installer/make-setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
BITS = platform.architecture()[0]
1717
assert (BITS == "32bit" or BITS == "64bit")
18+
IF BITS == "32bit":
19+
LINUX_BITS = "linux32"
20+
ELSE:
21+
LINUX_BITS = "linux64"
1822
PACKAGE_NAME = "cefpython3"
1923

2024
README_TEMPLATE = os.getcwd()+r"/README.txt.template"
@@ -49,7 +53,7 @@ def main():
4953

5054
installer_dir = os.path.dirname(os.path.abspath(__file__))
5155

52-
setup_dir = installer_dir+"/"+PACKAGE_NAME+"-"+vars["APP_VERSION"]+"-linux-"+BITS+"-setup"
56+
setup_dir = installer_dir+"/"+PACKAGE_NAME+"-"+vars["APP_VERSION"]+"-"+LINUX_BITS+"-setup"
5357
print("Creating setup dir: "+setup_dir)
5458
os.mkdir(setup_dir)
5559

0 commit comments

Comments
 (0)