Add py-wxpython package (#12163)

This commit is contained in:
Adam J. Stewart 2019-07-30 17:13:32 -05:00 committed by GitHub
parent c1c5f58d12
commit 482152e092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 9 deletions

View File

@ -17,5 +17,5 @@ class Cistem(AutotoolsPackage):
version('1.0.0-beta', '479f395b30ad630df3cbba9c56eb29c2')
depends_on('wx@3.0.2')
depends_on('wxwidgets@3.0.2')
depends_on('fftw')

View File

@ -14,5 +14,5 @@ class Ctffind(AutotoolsPackage):
version('4.1.8', '8ae9d9abe363141a3792981b5a2fae94')
depends_on('wx')
depends_on('wxwidgets')
depends_on('fftw@3:')

View File

@ -48,7 +48,7 @@ class Gdl(CMakePackage):
depends_on('proj@:5', when='+proj')
depends_on('py-numpy', type=('build', 'run'), when='+embed_python')
depends_on('python@2.7:2.8', type=('build', 'run'), when='+embed_python')
depends_on('wx', when='+wx')
depends_on('wxwidgets', when='+wx')
depends_on('eigen')
depends_on('fftw')

View File

@ -59,7 +59,7 @@ class Gnuplot(AutotoolsPackage):
depends_on('libcerf', when='+libcerf')
depends_on('libgd', when='+gd')
depends_on('cairo@1.2:', when='+cairo')
depends_on('wx', when='+wx')
depends_on('wxwidgets', when='+wx')
depends_on('pango@1.10:', when='+wx')
depends_on('pango@1.10:', when='+cairo')
depends_on('libx11', when='+X')

View File

@ -22,7 +22,7 @@ class Paraver(Package):
depends_on("boost")
# depends_on("extrae")
depends_on("wx")
depends_on("wxwidgets")
depends_on("wxpropgrid")
def install(self, spec, prefix):

View File

@ -35,7 +35,7 @@ class Plplot(CMakePackage):
depends_on('python@2.7:2.8', type=('build', 'run'), when='+python')
depends_on('qt', when='+qt')
depends_on('tcl', when='+tcl')
depends_on('wx', when='+wx')
depends_on('wxwidgets', when='+wx')
depends_on('freetype')
depends_on('gtkplus')

View File

@ -0,0 +1,38 @@
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyWxpython(PythonPackage):
"""Cross platform GUI toolkit for Python."""
homepage = "https://www.wxpython.org/"
url = "https://pypi.io/packages/source/w/wxPython/wxPython-4.0.6.tar.gz"
import_modules = [
'wx', 'wx.tools', 'wx.py', 'wx.lib', 'wx.lib.analogclock',
'wx.lib.floatcanvas', 'wx.lib.plot', 'wx.lib.mixins', 'wx.lib.gizmos',
'wx.lib.art', 'wx.lib.pdfviewer', 'wx.lib.colourchooser',
'wx.lib.masked', 'wx.lib.ogl', 'wx.lib.wxcairo', 'wx.lib.agw',
'wx.lib.pubsub', 'wx.lib.editor', 'wx.lib.analogclock.lib_setup',
'wx.lib.floatcanvas.Utilities', 'wx.lib.plot.examples',
'wx.lib.agw.aui', 'wx.lib.agw.ribbon', 'wx.lib.agw.persist',
'wx.lib.pubsub.core', 'wx.lib.pubsub.utils', 'wx.lib.pubsub.core.arg1',
'wx.lib.pubsub.core.kwargs'
]
version('4.0.6', sha256='35cc8ae9dd5246e2c9861bb796026bbcb9fb083e4d49650f776622171ecdab37')
depends_on('wxwidgets')
# Needed for the build.py script
depends_on('py-setuptools', type='build')
depends_on('py-pathlib2', type='build')
# Needed at runtime
depends_on('py-numpy', type='run')
depends_on('py-pillow', type='run')
depends_on('py-six', type='run')

View File

@ -55,7 +55,7 @@ class SagaGis(AutotoolsPackage):
# dependency through meson by a dependency of wx/gtkplus
depends_on('python@3:')
depends_on('wx')
depends_on('wxwidgets')
depends_on('gdal')
depends_on('proj@:5')

View File

@ -16,7 +16,7 @@ class Wxpropgrid(Package):
version('1.4.15', 'f44b5cd6fd60718bacfabbf7994f1e93')
depends_on("wx")
depends_on("wxwidgets")
def install(self, spec, prefix):
configure("--prefix=%s" % prefix, "--with-wxdir=%s" %

View File

@ -7,7 +7,7 @@
import sys
class Wx(AutotoolsPackage):
class Wxwidgets(AutotoolsPackage):
"""wxWidgets is a C++ library that lets developers create
applications for Windows, Mac OS X, Linux and other platforms
with a single code base. It has popular language bindings for