[update] update installation script in order to distribute current version
This commit is contained in:
		
							parent
							
								
									df44979337
								
							
						
					
					
						commit
						28fc226750
					
				
							
								
								
									
										40
									
								
								makePyLoT.py
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								makePyLoT.py
									
									
									
									
									
								
							| @ -34,7 +34,7 @@ from argparse import RawDescriptionHelpFormatter | |||||||
| __all__ = [] | __all__ = [] | ||||||
| __version__ = 0.1 | __version__ = 0.1 | ||||||
| __date__ = '2014-11-26' | __date__ = '2014-11-26' | ||||||
| __updated__ = '2014-11-26' | __updated__ = '2016-04-28' | ||||||
| 
 | 
 | ||||||
| DEBUG = 0 | DEBUG = 0 | ||||||
| TESTRUN = 0 | TESTRUN = 0 | ||||||
| @ -69,19 +69,19 @@ def main(argv=None):  # IGNORE:C0111 | |||||||
|     program_version_message = 'makePyLoT %s (%s)' % ( |     program_version_message = 'makePyLoT %s (%s)' % ( | ||||||
|         program_version, program_build_date) |         program_version, program_build_date) | ||||||
|     program_shortdesc = __import__('__main__').__doc__.split("\n")[1] |     program_shortdesc = __import__('__main__').__doc__.split("\n")[1] | ||||||
|     program_license = '''%s |     program_license = '''{0:s} | ||||||
| 
 | 
 | ||||||
|   Created by Sebastian Wehling-Benatelli on %s. |     Created by Sebastian Wehling-Benatelli on {1:s}. | ||||||
|   Copyright 2014 MAGS2 EP3 Working Group. All rights reserved. |     Copyright 2014 MAGS2 EP3 Working Group. All rights reserved. | ||||||
| 
 | 
 | ||||||
|   GNU Lesser General Public License, Version 3 |     GNU Lesser General Public License, Version 3 | ||||||
|     (http://www.gnu.org/copyleft/lesser.html) |     (http://www.gnu.org/copyleft/lesser.html) | ||||||
| 
 | 
 | ||||||
|   Distributed on an "AS IS" basis without warranties |     Distributed on an "AS IS" basis without warranties | ||||||
|   or conditions of any kind, either express or implied. |     or conditions of any kind, either express or implied. | ||||||
| 
 | 
 | ||||||
| USAGE |     USAGE | ||||||
| ''' % (program_shortdesc, str(__date__)) |     '''.format(program_shortdesc, str(__date__)) | ||||||
| 
 | 
 | ||||||
|     try: |     try: | ||||||
|         # Setup argument parser |         # Setup argument parser | ||||||
| @ -109,17 +109,17 @@ USAGE | |||||||
| 
 | 
 | ||||||
|         if verbose > 0: |         if verbose > 0: | ||||||
|             print("Verbose mode on") |             print("Verbose mode on") | ||||||
|             if install and not directory: |         if install and not directory: | ||||||
|                 raise CLIError("""Trying to install without appropriate |             raise CLIError("""Trying to install without appropriate | ||||||
|                                destination; please specify an installation |                            destination; please specify an installation | ||||||
|                                directory!""") |                            directory!""") | ||||||
|             if build and install: |         if build and install: | ||||||
|                 print("Building and installing PyLoT ...\n") |             print("Building and installing PyLoT ...\n") | ||||||
|                 buildPyLoT(verbose) |             buildPyLoT(verbose) | ||||||
|                 installPyLoT(verbose) |             installPyLoT(verbose) | ||||||
|             elif build and not install: |         elif build and not install: | ||||||
|                 print("Building PyLoT without installing! Please wait ...\n") |             print("Building PyLoT without installing! Please wait ...\n") | ||||||
|                 buildPyLoT(verbose) |             buildPyLoT(verbose) | ||||||
|         cleanUp() |         cleanUp() | ||||||
|         return 0 |         return 0 | ||||||
|     except KeyboardInterrupt: |     except KeyboardInterrupt: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user