aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.hgignore1
-rw-r--r--Dockerfile2
-rw-r--r--LICENSE2
-rw-r--r--__init__.py4
-rw-r--r--setup.py30
-rwxr-xr-xtox.ini5
6 files changed, 22 insertions, 22 deletions
diff --git a/.hgignore b/.hgignore
index c0fd2bb..2110212 100644
--- a/.hgignore
+++ b/.hgignore
@@ -9,3 +9,4 @@ syntax: glob
_doc
TODO
+tmp
diff --git a/Dockerfile b/Dockerfile
index 6d34755..05e6935 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,4 +22,4 @@ RUN echo ' auditwheel repair "$whl" -w /src/dist/' >> /usr/bin/makewheel
RUN echo 'done' >> /usr/bin/makewheel
RUN chmod 755 /usr/bin/makewheel
-CMD /usr/bin/makewheel 27 35 36 37 38
+CMD /usr/bin/makewheel 27 35 36 37 38 39
diff --git a/LICENSE b/LICENSE
index 630d5ec..a35501f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
- Copyright (c) 2019-2020 Anthon van der Neut, Ruamel bvba
+ Copyright (c) 2019-2021 Anthon van der Neut, Ruamel bvba
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/__init__.py b/__init__.py
index f9ea70c..2829f61 100644
--- a/__init__.py
+++ b/__init__.py
@@ -7,8 +7,8 @@ if False: # MYPY
_package_data = dict(
full_package_name='ruamel.yaml.clib',
- version_info=(0, 2, 3),
- __version__='0.2.3',
+ version_info=(0, 2, 4),
+ __version__='0.2.4',
author='Anthon van der Neut',
author_email='a.van.der.neut@ruamel.eu',
description='C version of reader, parser and emitter for ruamel.yaml derived from libyaml',
diff --git a/setup.py b/setup.py
index 40aba3a..9ec5bcb 100644
--- a/setup.py
+++ b/setup.py
@@ -323,17 +323,17 @@ class NameSpacePackager(object):
self.command = None
self.python_version()
self._pkg = [None, None] # required and pre-installable packages
- if (
- sys.argv[0] == 'setup.py'
- and sys.argv[1] == 'install'
- and '--single-version-externally-managed' not in sys.argv
- ):
- if os.environ.get('READTHEDOCS', None) == 'True':
- os.system('pip install .')
- sys.exit(0)
- if not os.environ.get('RUAMEL_NO_PIP_INSTALL_CHECK', False):
- print('error: you have to install with "pip install ."')
- sys.exit(1)
+ if sys.argv[0] == 'setup.py' and sys.argv[1] == 'install':
+ debug('calling setup.py', sys.argv)
+ if '-h' in sys.argv:
+ pass
+ elif '--single-version-externally-managed' not in sys.argv:
+ if os.environ.get('READTHEDOCS', None) == 'True':
+ os.system('pip install .')
+ sys.exit(0)
+ if not os.environ.get('RUAMEL_NO_PIP_INSTALL_CHECK', False):
+ print('error: you have to install with "pip install ."')
+ sys.exit(1)
# If you only support an extension module on Linux, Windows thinks it
# is pure. That way you would get pure python .whl files that take
# precedence for downloading on Linux over source with compilable C code
@@ -799,8 +799,8 @@ class NameSpacePackager(object):
try:
tmp_dir = tempfile.mkdtemp(prefix='tmp_ruamel_')
bin_file_name = 'test' + self.pn(target['name'])
- print('test compiling', bin_file_name)
file_name = os.path.join(tmp_dir, bin_file_name + '.c')
+ print('test compiling', file_name, '->', bin_file_name, end=' ')
with open(file_name, 'w') as fp: # write source
fp.write(c_code)
# and try to compile it
@@ -824,15 +824,17 @@ class NameSpacePackager(object):
except CompileError:
debug('compile error:', file_name)
print('compile error:', file_name)
- continue
+ raise
except LinkError:
debug('link error', file_name)
print('link error', file_name)
- continue
+ raise
+ print('OK')
self._ext_modules.append(ext)
except Exception as e: # NOQA
debug('Exception:', e)
print('Exception:', e)
+ sys.exit(1)
if sys.version_info[:2] == (3, 4) and platform.system() == 'Windows':
traceback.print_exc()
finally:
diff --git a/tox.ini b/tox.ini
index 845c421..4957b2d 100755
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
# toxworkdir = /data1/DATA/tox/ruamel.yaml.clib
-envlist = cs,py38,py27,py37,py36,py35,py39,pypy,py27m
+envlist = cs,py39,py38,py37,py36,py35
[testenv]
skip_install = True
@@ -11,9 +11,6 @@ deps =
pytest
wheel
-[testenv:py27m]
-basepython = /opt/python/2.7.15m/bin/python
-
[testenv:cs]
basepython = python3.6
deps =