This commit is contained in:
Tan, Kian-ting 2021-06-19 18:37:08 +08:00
parent 366dfcecd7
commit 80da185aab
3 changed files with 23 additions and 7 deletions

View file

@ -1,13 +1,29 @@
# Clochur # Clochur
A Scheme-like typesetting LISP interpreter and editor that using SILE typesetting Engine. A Scheme-like typesetting LISP interpreter and editor that using SILE typesetting Engine.
== Packaging ==
To make a wheel package, run: ## Dependencies
* PyQt5>=5.15
* QScintilla>=2.12
* SILE>=0.10
python setup.py bdist_wheel ## Install
It's recommended to install the wheel file (.whl) of it with pip3:
`pip3 install Clochur-x.y.z-py3-none-any.whl`
## Manual
see `src/example.pdf`
## Packaging
To make a wheel package, run the following command in the root folder:
`python setup.py bdist_wheel`
and then: and then:
cd dist `cd dist; ls`
pip3 install Clochur-x.y.z-py3-none-any.whl
`Clochur-x.y.z-py3-none-any.whl` will in it.

View file

@ -19,7 +19,7 @@ from Editor import qrc_resources
from Editor import __about__ from Editor import __about__
from Editor import FindReplace from Editor import FindReplace
from Editor.Interpreter import Interpreter, Lambda from Editor.Interpreter import Interpreter, Lambda
from Editor import CustomQsciEditor from Editorimport CustomQsciEditor
from Editor.Parser import Parser from Editor.Parser import Parser
@ -27,7 +27,7 @@ sile_command = 'sile'
dirname = os.path.abspath(os.path.dirname(__file__)) #os.path.dirname('__file__') dirname = os.path.abspath(os.path.dirname(__file__)) #os.path.dirname('__file__')
PDFJS = os.path.join(dirname, '../thirdparty/pdfjs/web/viewer.html') PDFJS = os.path.join(dirname, '../thirdparty/pdfjs/web/viewer.html')
PDF = os.path.join(dirname, 'example.pdf') PDF = os.path.join(os.path.dirname(dirname), 'example.pdf')
app = None app = None

BIN
src/example.pdf Normal file

Binary file not shown.