[pygobject] setup.py: don't install tests
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] setup.py: don't install tests
- Date: Fri, 16 Mar 2018 14:21:58 +0000 (UTC)
commit 1441348ca80ad5717f9a24d7707740ba508586e2
Author: Christoph Reiter <reiter christoph gmail com>
Date: Fri Mar 16 15:17:37 2018 +0100
setup.py: don't install tests
Now that the tests directory has a __init__.py and is a Python package
find_packages() returns it and setup() will install it.
Instead of using find_packages() hardcode the list of included packages.
setup.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/setup.py b/setup.py
index aa4cfc66..52b45884 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ import sysconfig
from email import parser
import pkg_resources
-from setuptools import setup, find_packages
+from setuptools import setup
from distutils.core import Extension, Distribution, Command
from distutils.errors import DistutilsSetupError, DistutilsOptionError
from distutils.ccompiler import new_compiler
@@ -956,7 +956,12 @@ def main():
long_description=long_description,
platforms=pkginfo.get_all("Platform"),
classifiers=pkginfo.get_all("Classifier"),
- packages=find_packages(script_dir),
+ packages=[
+ "pygtkcompat",
+ "gi",
+ "gi.repository",
+ "gi.overrides",
+ ],
ext_modules=[
gi_ext,
gi_cairo_ext,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]