mirror of
https://github.com/torproject/stem.git
synced 2024-11-27 03:30:38 +00:00
Port from distutils to setuptools
This commit is contained in:
parent
d4998ded00
commit
7bccaa48b5
7
setup.py
7
setup.py
@ -66,7 +66,7 @@
|
||||
# * Contact package maintainers
|
||||
# * Announce the release (example: https://blog.torproject.org/blog/stem-release-11)
|
||||
|
||||
import distutils.core
|
||||
import setuptools
|
||||
import os
|
||||
import sys
|
||||
import stem
|
||||
@ -126,8 +126,9 @@ os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
with open('MANIFEST.in', 'w') as manifest_file:
|
||||
manifest_file.write(MANIFEST)
|
||||
|
||||
|
||||
try:
|
||||
distutils.core.setup(
|
||||
setuptools.setup(
|
||||
name = 'stem-dry-run' if DRY_RUN else 'stem',
|
||||
version = stem.__version__,
|
||||
description = DRY_RUN_SUMMARY if DRY_RUN else SUMMARY,
|
||||
@ -136,7 +137,7 @@ try:
|
||||
author = stem.__author__,
|
||||
author_email = stem.__contact__,
|
||||
url = stem.__url__,
|
||||
packages = ['stem', 'stem.client', 'stem.descriptor', 'stem.interpreter', 'stem.response', 'stem.util'],
|
||||
packages = setuptools.find_packages(exclude=["test*"]),
|
||||
keywords = 'tor onion controller',
|
||||
scripts = ['tor-prompt'],
|
||||
package_data = {
|
||||
|
Loading…
Reference in New Issue
Block a user