Skip to content

Commit 3503e3b

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

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

appveyor.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
cache:
19+
- "C:\\pip_cache"
20+
- "node_modules"
21+
- "C:\\Users\\appveyor\\AppData\\Roaming\\nltk_data"
22+
23+
branches:
24+
except:
25+
- /^sils\/.*/
26+
27+
install:
28+
# Prepend newly installed Python to the PATH of this build (this cannot be
29+
# done from inside the powershell script as it would require to restart
30+
# the parent CMD process).
31+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
32+
33+
# Check that we have the expected version and architecture for Python
34+
- "python --version"
35+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
36+
- "%CMD_IN_ENV% python -m pip install --upgrade setuptools==21 pip==9"
37+
38+
build: false # Not a C# project, build stuff at the test step instead.
39+
40+
test_script:
41+
- "%CMD_IN_ENV% py.test"
42+
- "%CMD_IN_ENV% python setup.py install"
43+
44+
matrix:
45+
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)