Skip to content

Commit 8255da2

Browse files
committed
setup.py: Change distutils to setuptools
Closes #120
1 parent c36c147 commit 8255da2

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

appveyor.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
environment:
2+
matrix:
3+
- PYTHON: "C:\\Python34"
4+
PYTHON_VERSION: "3.4.4"
5+
PYTHON_ARCH: "32"
6+
7+
- PYTHON: "C:\\Python34-x64"
8+
PYTHON_VERSION: "3.4.4"
9+
PYTHON_ARCH: "64"
10+
11+
- PYTHON: "C:\\Python36"
12+
PYTHON_VERSION: "3.6"
13+
PYTHON_ARCH: "32"
14+
15+
- PYTHON: "C:\\Python36-x64"
16+
PYTHON_VERSION: "3.6"
17+
PYTHON_ARCH: "64"
18+
19+
branches:
20+
except:
21+
- /^sils\/.*/
22+
23+
install:
24+
# Prepend newly installed Python to the PATH of this build (this cannot be
25+
# done from inside the powershell script as it would require to restart
26+
# the parent CMD process).
27+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
28+
29+
# Check that we have the expected version and architecture for Python
30+
- "python --version"
31+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
32+
- "%CMD_IN_ENV% python -m pip install --upgrade setuptools==21 pip==9"
33+
34+
build: false # Not a C# project, build stuff at the test step instead.
35+
36+
test_script:
37+
- "%CMD_IN_ENV% python setup.py install"
38+
39+
matrix:
40+
fast_finish: true

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import absolute_import
66

77
import ast
8-
from distutils import core
8+
from setuptools import setup
99
import os
1010

1111

@@ -18,7 +18,7 @@ def version(filename):
1818

1919

2020
with open('README.rst') as readme:
21-
core.setup(
21+
setup(
2222
name='cppclean',
2323
version=version(os.path.join('cpp', '__init__.py')),
2424
description='Find problems in C++ source that slow development '

0 commit comments

Comments
 (0)