[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Port from distutils to setuptools



commit 7bccaa48b564f7eacb292fcb9029131a8d2e48d7
Author: msramalho <up201403027@xxxxxxxx>
Date:   Mon Mar 30 21:53:57 2020 +0100

    Port from distutils to setuptools
---
 setup.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 52b62dca..8e738a20 100644
--- a/setup.py
+++ b/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 = {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits