Package: pdd / 1.7-2

Remove-unnecessary-copyfile-function.patch Patch series | 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
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <[email protected]>
Date: Tue, 20 Dec 2022 15:05:20  0800
Subject: Remove unnecessary copyfile function

---
 setup.py | 5  ----
 1 file changed, 1 insertion( ), 4 deletions(-)

diff --git a/setup.py b/setup.py
index ff5d362..33ac5ac 100644
--- a/setup.py
    b/setup.py
@@ -7,10  7,7 @@ import sys
 
 from setuptools import setup, find_packages
 
-if os.path.isfile('pdd'):
-    shutil.copyfile('pdd', 'pdd.py')
-
-with open('pdd.py', encoding='utf-8') as f:
 with open('pdd', encoding='utf-8') as f:
     version = re.search('_VERSION_ = \'([^\'] )\'', f.read()).group(1)
 
 with open('README.md', encoding='utf-8') as f: