File tree Expand file tree Collapse file tree 8 files changed +17
-29
lines changed
Expand file tree Collapse file tree 8 files changed +17
-29
lines changed Original file line number Diff line number Diff line change 5252# fails and then run the compile.py script again and this time
5353# make should succeed.
5454
55- os .chdir ("./../../ cpp_utils/" )
55+ os .chdir ("./../cpp_utils/" )
5656subprocess .call ("rm -f *.o *.a" , shell = True )
5757
5858ret = subprocess .call ("make -f Makefile" , shell = True )
9090 # .copy() will also copy Permission bits
9191 shutil .copy ("./subprocess" , subprocess_exe )
9292
93- # os.chdir("./../v8function_handler/")
94- # ret = subprocess.call("make -f Makefile", shell=True)
95- # if ret != 0:
96- # what = raw_input("make failed, press 'y' to continue, 'n' to stop: ")
97- # if what != "y":
98- # sys.exit(1)
99-
10093os .chdir ("./../linux/" )
10194
10295try :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def ExceptAllMissing(content):
5959print ("\n " )
6060mainfile = "cefpython.pyx"
6161
62- pyxfiles = glob .glob ("../../../ *.pyx" )
62+ pyxfiles = glob .glob ("../../*.pyx" )
6363if not len (pyxfiles ):
6464 sys .exit (1 )
6565pyxfiles = [file for file in pyxfiles if file .find (mainfile ) == - 1 ]
@@ -81,7 +81,7 @@ def ExceptAllMissing(content):
8181# Copying pyxfiles and reading its contents.
8282
8383print ("Copying .pyx files to /setup/: %s" % pyxfiles )
84- shutil .copy ("../../../ %s" % mainfile , "./%s" % mainfile )
84+ shutil .copy ("../../%s" % mainfile , "./%s" % mainfile )
8585# Rest of the files will be copied in for loop below.
8686
8787print ("Fixing includes in .pyx files:" )
Original file line number Diff line number Diff line change 2424def CompileTimeConstants ():
2525
2626 print ("Generating: cython_includes/compile_time_constants.pxi" )
27- with open ("./../../../ cython_includes/compile_time_constants.pxi" , "w" ) as fd :
27+ with open ("./../../cython_includes/compile_time_constants.pxi" , "w" ) as fd :
2828 fd .write ('# This file was generated by setup.py\n ' )
2929 # A way around Python 3.2 bug: UNAME_SYSNAME is not set.
3030 fd .write ('DEF UNAME_SYSNAME = "%s"\n ' % platform .uname ()[0 ])
@@ -51,8 +51,7 @@ def CompileTimeConstants():
5151 include_dirs = [
5252 r'./../' ,
5353 r'./../../' ,
54- r'./../../../' ,
55- r'./../../../cython_includes/' ,
54+ r'./../../cython_includes/' ,
5655 '/usr/include/gtk-2.0' ,
5756 '/usr/include/glib-2.0' ,
5857 '/usr/include/cairo' ,
@@ -74,10 +73,9 @@ def CompileTimeConstants():
7473 # http_authentication not implemented on Linux.
7574 library_dirs = [
7675 r'./lib_%s' % BITS ,
77- # r'./../../v8function_handler/',
7876 r'./../../client_handler/' ,
7977 r'./../../subprocess/' , # libcefpythonapp
80- r'./../../../ cpp_utils/'
78+ r'./../../cpp_utils/'
8179 ],
8280
8381 libraries = [
Original file line number Diff line number Diff line change 7070# fails and then run the compile.py script again and this time
7171# make should succeed.
7272
73- os .chdir ("./../../ cpp_utils/" )
73+ os .chdir ("./../cpp_utils/" )
7474subprocess .call ("rm -f *.o *.a" , shell = True )
7575
7676ret = subprocess .call ("make -f Makefile" , shell = True )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def ExceptAllMissing(content):
5959print ("\n " )
6060mainfile = "cefpython.pyx"
6161
62- pyxfiles = glob .glob ("../../../ *.pyx" )
62+ pyxfiles = glob .glob ("../../*.pyx" )
6363if not len (pyxfiles ):
6464 sys .exit (1 )
6565pyxfiles = [file for file in pyxfiles if file .find (mainfile ) == - 1 ]
@@ -81,7 +81,7 @@ def ExceptAllMissing(content):
8181# Copying pyxfiles and reading its contents.
8282
8383print ("Copying .pyx files to /setup/: %s" % pyxfiles )
84- shutil .copy ("../../../ %s" % mainfile , "./%s" % mainfile )
84+ shutil .copy ("../../%s" % mainfile , "./%s" % mainfile )
8585# Rest of the files will be copied in for loop below.
8686
8787print ("Fixing includes in .pyx files:" )
Original file line number Diff line number Diff line change 3232def CompileTimeConstants ():
3333
3434 print ("Generating: cython_includes/compile_time_constants.pxi" )
35- with open ("./../../../ cython_includes/compile_time_constants.pxi" , "w" ) as fd :
35+ with open ("./../../cython_includes/compile_time_constants.pxi" , "w" ) as fd :
3636 fd .write ('# This file was generated by setup.py\n ' )
3737 # A way around Python 3.2 bug: UNAME_SYSNAME is not set.
3838 fd .write ('DEF UNAME_SYSNAME = "%s"\n ' % platform .uname ()[0 ])
@@ -59,8 +59,7 @@ def CompileTimeConstants():
5959 include_dirs = [
6060 r'./../' ,
6161 r'./../../' ,
62- r'./../../../' ,
63- r'./../../../cython_includes/' ,
62+ r'./../../cython_includes/' ,
6463 '/usr/include/gtk-2.0' ,
6564 '/usr/include/glib-2.0' ,
6665 '/usr/include/cairo' ,
@@ -82,10 +81,9 @@ def CompileTimeConstants():
8281 # http_authentication not implemented on Linux.
8382 library_dirs = [
8483 r'./lib_%s' % BITS ,
85- # r'./../../v8function_handler/',
8684 r'./../../client_handler/' ,
8785 r'./../../subprocess/' , # libcefpythonapp
88- r'./../../../ cpp_utils/'
86+ r'./../../cpp_utils/'
8987 ],
9088
9189 libraries = [
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def ExceptAllMissing(content):
5757print ("\n " )
5858mainfile = "cefpython.pyx"
5959
60- pyxfiles = glob .glob ("../../../ *.pyx" )
60+ pyxfiles = glob .glob ("../../*.pyx" )
6161if not len (pyxfiles ):
6262 sys .exit (1 )
6363pyxfiles = [file for file in pyxfiles if file .find (mainfile ) == - 1 ]
@@ -79,7 +79,7 @@ def ExceptAllMissing(content):
7979# Copying pyxfiles and reading its contents.
8080
8181print ("Copying .pyx files to /setup/: %s" % pyxfiles )
82- shutil .copy ("../../../ %s" % mainfile , "./%s" % mainfile )
82+ shutil .copy ("../../%s" % mainfile , "./%s" % mainfile )
8383# Rest of the files will be copied in for loop below.
8484
8585print ("Fixing includes in .pyx files:" )
Original file line number Diff line number Diff line change 2727# Generate compile_time_constants.pxi
2828def CompileTimeConstants ():
2929 print ("[setup.py] Generating: cython_includes/compile_time_constants.pxi" )
30- with open ("../../../ cython_includes/compile_time_constants.pxi" , "w" ) as fd :
30+ with open ("../../cython_includes/compile_time_constants.pxi" , "w" ) as fd :
3131 fd .write ('# This file was generated by setup.py\n ' )
3232 # A way around Python 3.2 bug: UNAME_SYSNAME is not set.
3333 fd .write ('DEF UNAME_SYSNAME = "%s"\n ' % platform .uname ()[0 ])
@@ -63,16 +63,15 @@ def CompileTimeConstants():
6363 include_dirs = [
6464 r'./../' ,
6565 r'./../../' ,
66- r'./../../../' ,
67- r'./../../../cython_includes/' ],
66+ r'./../../cython_includes/' ],
6867
6968 library_dirs = [
7069 winsdk_lib ,
7170 r'./' ,
7271 r'./lib_%s' % (BITS ),
7372 r'./../../client_handler/Release_py%s_%s/' % (PYVER , BITS ),
7473 r'./../../subprocess/Release_py%s_%s/' % (PYVER , BITS ),
75- r'./../../../ cpp_utils/Release_%s/' % (BITS ),
74+ r'./../../cpp_utils/Release_%s/' % (BITS ),
7675 ],
7776
7877 libraries = [
You can’t perform that action at this time.
0 commit comments