File: 0002-Create-our-py2-and-py3-executables-to-use-with-updat.patch

package info (click to toggle)
cssutils 1.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,632 kB
  • sloc: python: 20,333; sh: 62; makefile: 20
file content (29 lines) | stat: -rw-r--r-- 1,176 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Charlie Smotherman <cjsmo@cableone.net>
Date: Thu, 8 Oct 2015 08:46:22 -0700
Subject: Create our py2 and py3 executables to use with update-alternatives

This way we can have py2 and py3 packages installed at the same time.
---
 setup.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 71ca1c8..b68094e 100644
--- a/setup.py
+++ b/setup.py
@@ -65,9 +65,12 @@ setup(
     tests_require=['mock', 'pbr < 1.7.0'],
     entry_points={
         'console_scripts': [
-            'csscapture = cssutils.scripts.csscapture:main',
-            'csscombine = cssutils.scripts.csscombine:main',
-            'cssparse = cssutils.scripts.cssparse:main'
+            'csscapture_py2 = cssutils.scripts.csscapture:main',
+            'csscombine_py2 = cssutils.scripts.csscombine:main',
+            'cssparse_py2 = cssutils.scripts.cssparse:main',
+            'csscapture_py3 = cssutils.scripts.csscapture:main',
+            'csscombine_py3 = cssutils.scripts.csscombine:main',
+            'cssparse_py3 = cssutils.scripts.cssparse:main'
         ]
     },
     description='A CSS Cascading Style Sheets library for Python',