Skip to content

Commit 7e90e54

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent ea26c1d commit 7e90e54

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""comtypes package install script"""
22
import sys
33
import os
4-
import ctypes
54
import subprocess
65

76
from distutils.core import Command
@@ -13,6 +12,7 @@
1312
with open('README.md') as readme_stream:
1413
readme = readme_stream.read()
1514

15+
1616
class test(Command):
1717
# Original version of this class posted
1818
# by Berthold Hoellmann to [email protected]
@@ -24,7 +24,8 @@ class test(Command):
2424
('use-resources=', 'u',
2525
"resources to use - resource names are defined by tests"),
2626
('refcounts', 'r',
27-
"repeat tests to search for refcount leaks (requires 'sys.gettotalrefcount')"),
27+
"repeat tests to search for refcount leaks (requires "
28+
"'sys.gettotalrefcount')"),
2829
]
2930

3031
boolean_options = ["refcounts"]
@@ -64,6 +65,7 @@ def run(self):
6465
self.refcounts)
6566
self.failure = self.failure or package_failure
6667

68+
6769
classifiers = [
6870
'Development Status :: 5 - Production/Stable',
6971
'Intended Audience :: Developers',
@@ -75,6 +77,7 @@ def run(self):
7577
'Topic :: Software Development :: Libraries :: Python Modules',
7678
]
7779

80+
7881
def read_version():
7982
# Determine the version number by reading it from the file
8083
# 'comtypes\__init__.py'. We cannot import this file (with py3,
@@ -108,7 +111,8 @@ def run(self):
108111
install.run(self)
109112
# Custom script we run at the end of installing
110113
if not self.dry_run and not self.root:
111-
filename = os.path.join(self.install_scripts, "clear_comtypes_cache.py")
114+
filename = os.path.join(
115+
self.install_scripts, "clear_comtypes_cache.py")
112116
if not os.path.isfile(filename):
113117
raise RuntimeError("Can't find '%s'" % (filename,))
114118
print("Executing post install script...")
@@ -122,7 +126,7 @@ def run(self):
122126
setup_params = dict(
123127
name="comtypes",
124128
description="Pure Python COM package",
125-
long_description = readme,
129+
long_description=readme,
126130
author="Thomas Heller",
127131
author_email="[email protected]",
128132
url="https://github.com/enthought/comtypes",

0 commit comments

Comments
 (0)