Skip to content

Commit 0837096

Browse files
committed
More pip support.
1 parent 0a1310f commit 0837096

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include inputscope *.py *.tpl *.db *.css *.ico *.js *.svg
2+
include LICENSE.md README.md requirements.txt

inputscope/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import conf
2+
__version__ = conf.Version
3+
__VERSION__ = conf.Version

inputscope/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Package entry point."""
2+
from inputscope import main
3+
4+
if "__main__" == __name__:
5+
main.main()

inputscope/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ def main():
229229

230230

231231
if "__main__" == __name__:
232-
main()
232+
main()

inputscope/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ def start_listener(inqueue, outqueue):
250250

251251
def main():
252252
"""Entry point for stand-alone execution."""
253-
multiprocessing.freeze_support()
254253
conf.init()
255254
db.init(conf.DbPath, conf.DbStatements)
256255

@@ -272,4 +271,5 @@ def main():
272271

273272

274273
if "__main__" == __name__:
274+
multiprocessing.freeze_support()
275275
main()

inputscope/webui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def start():
204204

205205
def main():
206206
"""Entry point for stand-alone execution."""
207-
conf.WebAutoReload, conf.WebQuiet = True, False
207+
conf.WebQuiet = False
208208
start()
209209

210210

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
keywords="mouse keyboard logging heatmap",
2727

2828
install_requires=["bottle", "PyUserInput"],
29-
entry_points={"gui_scripts": ["inputscope = inputscope.main:run"]},
30-
entry_points={"console_scripts": ["inputscope-listener = listener.main:run"],
31-
["inputscope-webui = webui.main:run"]},
29+
entry_points={"gui_scripts": ["inputscope = inputscope.main:main"],
30+
"console_scripts": ["inputscope-listener = inputscope.listener:main",
31+
"inputscope-webui = inputscope.webui:main"]},
3232

3333
packages=setuptools.find_packages(),
3434
include_package_data=True, # Use MANIFEST.in for data files

0 commit comments

Comments
 (0)