lbry-android-sdk/p4a/pythonforandroid/recipes/preppy/fix-setup.patch

45 lines
1.5 KiB
Diff
Raw Normal View History

--- a/setup.py 2017-11-20 13:53:42.000000000 +0000
+++ b/setup.py 2017-11-20 14:00:44.862203526 +0000
@@ -15,35 +15,6 @@
import preppy
version = preppy.VERSION
- scriptsPath=os.path.join(pkgDir,'build','scripts')
-
- def makeScript(modName):
- try:
- bat=sys.platform in ('win32','amd64')
- scriptPath=os.path.join(scriptsPath,modName+(bat and '.bat' or ''))
- exePath=sys.executable
- f = open(scriptPath,'w')
- try:
- if bat:
- text = '@echo off\nrem startup script for %s-%s\n"%s" -m "%s" %%*\n' % (modName,version,exePath,modName)
- else:
- text = '#!/bin/sh\n#startup script for %s-%s\nexec "%s" -m "%s" $*\n' % (modName,version,exePath,modName)
- f.write(text)
- finally:
- f.close()
- except:
- print('script for %s not created or erroneous' % modName)
- import traceback
- traceback.print_exc(file=sys.stdout)
- return None
- print('Created "%s"' % scriptPath)
- return scriptPath
-
- scripts = []
- if not os.path.isdir(scriptsPath): os.makedirs(scriptsPath)
- scripts.extend(filter(None,[
- makeScript('preppy'),
- ]))
setup(name='preppy',
version=version,
@@ -52,5 +23,4 @@
author_email='andy@reportlab.com',
url='http://bitbucket.org/rptlab/preppy',
py_modules=['preppy'],
- scripts=scripts,
)