| Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
|---|
|
||||
1 # -*- coding: utf-8 -*-
2 """MicroPython releases.
3 """
4 from __future__ import absolute_import
5
6 from platformids import _debug, _verbose
7 from platformids import RTE_EMBEDDED, rte2num, num2rte, num2pretty, \
8 custom_ostype, custom_dist
9
10 __author__ = 'Arno-Can Uestuensoez'
11 __license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints"
12 __copyright__ = "Copyright (C) 2010-2018 Arno-Can Uestuensoez" \
13 " @Ingenieurbuero Arno-Can Uestuensoez"
14 __version__ = '0.1.1'
15 __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9"
16
17 # context: RTE_EMBEDDED
18 RTE_MICROPYTHON = RTE_EMBEDDED + custom_ostype.add_enum() #: MicroPython code base as ostype
19 RTE_MICROPYTHON3 = RTE_MICROPYTHON + custom_dist.add_enum() #: implementation/distribution variants
20
21
22 #: mapping of the rte string and numeric representation to the numeric value
23 rte2num.update(
24 {
25 'micropython': RTE_MICROPYTHON,
26 'micropython3': RTE_MICROPYTHON3,
27 RTE_MICROPYTHON3: RTE_MICROPYTHON3,
28 RTE_MICROPYTHON: RTE_MICROPYTHON,
29 }
30 )
31
32
33 #: mapping of the rte numeric representation to the string value
34 num2rte.update(
35 {
36 RTE_MICROPYTHON: 'micropython',
37 RTE_MICROPYTHON3: 'micropython3',
38 }
39 )
40
41
42 #: mapping for pretty print
43 num2pretty.update(
44 {
45 RTE_MICROPYTHON: 'MicroPython',
46 RTE_MICROPYTHON3: 'MicroPython-3',
47 }
48 )
49
50
51 # if not isJython:
52 # try:
53 # osname = os.name
54 # except AttributeError:
55 # try:
56 # # CirctuiPython, MicroPython
57 # osname = sys.implementation.name # @UndefinedVariable
58 # if osname in ('circuitpython', 'micropython', ):
59 # sys.stderr.write('use special module for: ' + str(osname))
60 # sys.exit()
61 # except:
62 # sys.stderr.write('platform is not supported')
63 # sys.exit()
64 #
65 # if PYV35Plus:
66 # PlatformIDsFileCheck = (FileNotFoundError,) # @UndefinedVariable
67 #
68 # else:
69 # PlatformIDsFileCheck = (Exception,)
70 #
71 # else:
72 # osname = os._name # @UndefinedVariable # set to the platform name
73 # PlatformIDsFileCheck = (IOError,) # @UndefinedVariable
74
| Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
|---|
| Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
| Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Wed Dec 18 15:06:56 2019 | http://epydoc.sourceforge.net |