lbry-fdroid/p4a/pythonforandroid/recipes/preppy/fix-setup.patch
Akinwale Ariwodola 8b2694efb7
New build (#508)
* fix build for openssl 1.1.1b required for sdk
(cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977)

* use js code from master

* fix openssl recipe and tweak build
(cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e)

* remove unused build recipes
(cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
2019-03-30 21:58:45 +01:00

44 lines
1.5 KiB
Diff

--- 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,
)