mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make setup.py not depend on having libprs500 installed.
This commit is contained in:
parent
cdc36b5e29
commit
e7564cae6d
8
setup.py
8
setup.py
@ -14,9 +14,11 @@
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
import sys, re, os, shutil
|
||||
sys.path.append('src')
|
||||
from libprs500 import __version__ as VERSION
|
||||
from libprs500 import __appname__ as APPNAME
|
||||
from libprs500 import islinux
|
||||
islinux = not ('win32' in sys.platform or 'win64' in sys.platform or 'darwin' in sys.platform)
|
||||
src = open('src/libprs500/__init__.py', 'rb').read()
|
||||
VERSION = re.search(r'__version__\s+=\s+[\'"]([^\'"]+)[\'"]', src).group(1)
|
||||
APPNAME = re.search(r'__appname__\s+=\s+[\'"]([^\'"]+)[\'"]', src).group(1)
|
||||
print 'Setup', APPNAME, 'version:', VERSION
|
||||
|
||||
entry_points = {
|
||||
'console_scripts': [ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user