Changeset 4710
- Timestamp:
- Jan 4, 2021 12:50:48 PM (3 years ago)
- Location:
- install
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
install/g2complete/meta.yaml.template
r4707 r4710 11 11 requirements: 12 12 run: 13 - python>=3.8 13 - python=**pyversion** 14 - numpy=**npversion** 15 - matplotlib=**mplversion** 16 - wxpython=**wxversion** 14 17 - conda 15 - numpy=1.19 # note hard coded in bld.bat and build.sh16 18 - scipy 17 - matplotlib>=3.318 19 - pillow 19 20 - pyopengl 20 - wxpython<4.121 21 - svn 22 22 - hdf5 -
install/g2full/construct.yaml.template
r4708 r4710 4 4 5 5 channels: 6 - https://repo.continuum.io/pkgs/main//linux-64 7 - https://repo.continuum.io/pkgs/main/noarch 8 - https://conda.anaconda.org/conda-forge/linux-64 9 - https://conda.anaconda.org/conda-forge/noarch 6 - https://repo.continuum.io/pkgs/main 7 - https://conda.anaconda.org/conda-forge 10 8 11 9 specs: 12 - python>=3.8 13 - conda 14 - numpy=1.19 15 - scipy 16 - matplotlib>=3.3 10 - python=**pyversion** 11 - numpy=**npversion** 12 - matplotlib=**mplversion** 13 - wxpython=**wxversion** 17 14 - pillow 18 15 - pyopengl 19 - wxpython<4.1 16 - scipy 17 - conda 20 18 - svn 21 19 - hdf5 -
install/setversion.py
r4705 r4710 34 34 if line.startswith('Rev'): 35 35 version = line.split()[1].strip() 36 print ('Version is {}'.format(out)) 36 37 break 37 38 else: 38 39 print ('Version not found!\nout=%s'%out) 39 40 sys.exit(1) 40 for fil in 'g2complete/meta.yaml','g2full/construct.yaml': 41 fp = open(fil+'.template','r') 42 out = fp.read().replace('**Version**',version) 41 42 import numpy as np 43 import wx 44 import matplotlib as mpl 45 import platform 46 npversion = np.__version__[:np.__version__.find('.',2)] 47 #wxversion = wx.__version__[:wx.__version__.find('.',2)] 48 wxversion = wx.__version__ 49 mplversion = mpl.__version__[:mpl.__version__.find('.',2)] 50 pyversion = platform.python_version() 51 if pyversion.find('.',2) > 0: pyversion = pyversion[:pyversion.find('.',2)] 52 print ('SVN version is {}'.format(version)) 53 print ('python version is {}'.format(pyversion)) 54 print ('numpy version is {}'.format(npversion)) 55 print ('wx version is {}'.format(wxversion)) 56 print ('MPL version is {}'.format(mplversion)) 57 58 for fil in ('g2complete/meta.yaml','g2complete/build.sh', 59 'g2complete/bld.bat', 60 'g2full/construct.yaml', 61 ): 62 try: 63 fp = open(fil+'.template','r') 64 out = fp.read().replace('**Version**',version) 65 fp.close() 66 except FileNotFoundError: 67 print('Skipping ',fil) 68 continue 43 69 if sys.platform == "win32" and platform.architecture()[0] != '64bit': 44 70 print('changing for 32-bit windows') 45 71 out = out.replace('win-64','win-32') 46 if sys.platform == "win32"and platform.architecture()[0] != '32bit':72 if sys.platform.startswith("linux") and platform.architecture()[0] != '32bit': 47 73 print('changing for 32-bit linux') 48 74 out = out.replace('linux-64','linux-32') 49 fp.close() 75 out = out.replace('**pyversion**',pyversion) 76 out = out.replace('**npversion**',npversion) 77 out = out.replace('**wxversion**',wxversion) 78 out = out.replace('**mplversion**',mplversion) 50 79 print('Creating',fil) 51 80 fp = open(fil,'w')
Note: See TracChangeset
for help on using the changeset viewer.