File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 77.installed.cfg
88* .egg
99.idea
10+ build
11+ env
Original file line number Diff line number Diff line change 22import subprocess
33from tempfile import NamedTemporaryFile
44
5- __version__ = '0.2 '
5+ __version__ = '0.21 '
66
77
88def execute_wk (* args ):
Original file line number Diff line number Diff line change 11import sys
2+ import os
23from setuptools import setup
4+ from setuptools .command .install import install
35
46description = 'PDF generation in python using wkhtmltopdf suitable for heroku'
57long_description = description
68if 'upload' in sys .argv or 'register' in sys .argv :
79 import pypandoc
810 long_description = pypandoc .convert ('README.md' , 'rst' )
911
12+
13+ class OverrideInstall (install ):
14+ def run (self ):
15+ install .run (self )
16+ for filepath in self .get_outputs ():
17+ if filepath .endswith ('pydf/bin/wkhtmltopdf' ):
18+ os .chmod (filepath , 0775 )
19+
20+
1021setup (
1122 name = 'python-pdf' ,
12- version = '0.2' ,
23+ cmdclass = {'install' : OverrideInstall },
24+ version = '0.21' ,
1325 description = description ,
1426 long_description = long_description ,
1527 author = 'Samuel Colvin' ,
You can’t perform that action at this time.
0 commit comments