File: 01_setup_fix.patch

package info (click to toggle)
cssutils 1.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,376 kB
  • sloc: python: 20,145; sh: 102; makefile: 62
file content (33 lines) | stat: -rw-r--r-- 1,262 bytes parent folder | download
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
30
31
32
33
From 75cebc0e02732f109feb8ea202eb8fdebcf26512 Mon Sep 17 00:00:00 2001
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

Patch-Name: 01_setup_fix.patch
---
 setup.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 694ea62..41accd6 100644
--- a/setup.py
+++ b/setup.py
@@ -53,9 +53,12 @@ setup(
     tests_require='mock',
     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',