From d3761c38967797e00d572c27bf3cf6ac6ec13706 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 19 May 2014 22:49:31 +0300 Subject: [PATCH] errno: Add EAFNOSUPPORT. --- errno/errno.py | 1 + errno/metadata.txt | 3 +++ errno/setup.py | 12 ++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 errno/metadata.txt diff --git a/errno/errno.py b/errno/errno.py index 2784dea1..c4cb3fed 100644 --- a/errno/errno.py +++ b/errno/errno.py @@ -32,4 +32,5 @@ EMLINK = 31 # Too many links EPIPE = 32 # Broken pipe EDOM = 33 # Math argument out of domain of func ERANGE = 34 # Math result not representable +EAFNOSUPPORT = 97 # Address family not supported by protocol EINPROGRESS = 115 # Operation now in progress diff --git a/errno/metadata.txt b/errno/metadata.txt new file mode 100644 index 00000000..2254c557 --- /dev/null +++ b/errno/metadata.txt @@ -0,0 +1,3 @@ +srctype = micropython-lib +type = module +version = 0.1.2 diff --git a/errno/setup.py b/errno/setup.py index 59dd63bb..b502cc8f 100644 --- a/errno/setup.py +++ b/errno/setup.py @@ -1,10 +1,18 @@ -from distutils.core import setup +import sys +# Remove current dir from sys.path, otherwise setuptools will peek up our +# module instead of system. +sys.path.pop(0) +from setuptools import setup + setup(name='micropython-errno', - version='0.1.1', + version='0.1.2', description='errno module for MicroPython', + long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405', author='MicroPython Developers', author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', license='MIT', py_modules=['errno'])