kopia lustrzana https://github.com/micropython/micropython-lib
make_metadata.py: Allow to have module name != distribution name.
Like, micropython-re-pcre hosts re.py.pull/118/head^2
rodzic
f1201bdce9
commit
cf4c27a885
|
@ -14,7 +14,7 @@ sys.path.pop(0)
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
setup(name='micropython-%(name)s',
|
||||
setup(name='micropython-%(dist_name)s',
|
||||
version='%(version)s',
|
||||
description=%(desc)r,
|
||||
long_description=%(long_desc)r,
|
||||
|
@ -117,8 +117,10 @@ def main():
|
|||
else:
|
||||
raise ValueError
|
||||
|
||||
data["name"] = module
|
||||
data["top_name"] = module.split(".", 1)[0]
|
||||
data["dist_name"] = module
|
||||
if "name" not in data:
|
||||
data["name"] = module
|
||||
data["top_name"] = data["name"].split(".", 1)[0]
|
||||
|
||||
if "depends" in data:
|
||||
deps = ["micropython-" + x.strip() for x in data["depends"].split(",")]
|
||||
|
|
Ładowanie…
Reference in New Issue