File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import platform
1313import shutil
1414import glob
15+ import sysconfig
1516
1617BITS = platform .architecture ()[0 ]
1718assert (BITS == "32bit" or BITS == "64bit" )
@@ -35,6 +36,7 @@ def main():
3536
3637 vars = {}
3738 vars ["APP_VERSION" ] = args .version
39+ vars ["PLATFORM" ] = sysconfig .get_platform ()
3840
3941 print ("Reading template: %s" % README_TEMPLATE )
4042 f = open (README_TEMPLATE )
Original file line number Diff line number Diff line change 1- from distutils.core import setup
2- from distutils .command.install import install as _install
1+ from setuptools import setup
2+ from setuptools .command.install import install as _install
33import sys
44import os
55import subprocess
66
77def my_post_install():
88 """ Chmod +x the subprocess and cefclient executables. """
99
10+ print("my_post_install()")
11+
1012 # Do not import from the local "cefpython3" directory.
1113 # Import the cefpython3 module from dist-packages/ directory.
1214 del sys.path[0]
4951 author='Czarek Tomczak',
5052 author_email='czarek.tomczak@gmail.com',
5153 url='http://code.google.com/p/cefpython/',
54+ platforms=['%(PLATFORM)'],
5255 packages=['cefpython3', 'cefpython3.wx'],
5356 package_data={'cefpython3': [
5457 'examples/*.py',
Original file line number Diff line number Diff line change 1313import shutil
1414import glob
1515import shutil
16+ import sysconfig
1617
1718BITS = platform .architecture ()[0 ]
1819assert (BITS == "32bit" or BITS == "64bit" )
@@ -55,6 +56,7 @@ def main():
5556
5657 vars = {}
5758 vars ["APP_VERSION" ] = args .version
59+ vars ["PLATFORM" ] = sysconfig .get_platform ()
5860
5961 print ("Reading template: %s" % README_TEMPLATE )
6062 f = open (README_TEMPLATE )
Original file line number Diff line number Diff line change 1- from distutils.core import setup
2- from distutils .command.install import install as _install
1+ from setuptools import setup
2+ from setuptools .command.install import install as _install
33import sys
44import os
55import subprocess
66
77def my_post_install():
8- pass
8+ print("my_post_install(): nothing to do")
99
1010class install(_install):
1111 def run(self):
2121 author='Czarek Tomczak',
2222 author_email='czarek.tomczak@gmail.com',
2323 url='http://code.google.com/p/cefpython/',
24+ platforms=['%(PLATFORM)'],
2425 packages=['cefpython3', 'cefpython3.wx'],
2526 package_data={'cefpython3': [
2627 'examples/*.py',
You can’t perform that action at this time.
0 commit comments