Skip to content

Commit

Permalink
Merge pull request andreasgrill#22 from jondeaton/master
Browse files Browse the repository at this point in the history
Added setup.py for easier installation
  • Loading branch information
andreasgrill authored Jul 29, 2017
2 parents a5f3f77 + 6ae5449 commit d5fbb49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ You can plan for every weekday if and when SelfControl should start and stop.
- [Download Auto-SelfControl](../../archive/master.zip) and copy/extract it to a directory on your Mac (e.g. `~/auto-selfcontrol`).
- Edit the config.json (see [Configuration](#configuration) first).
- Open Terminal.app and navigate to the directory. (e.g. `cd ~/auto-selfcontrol`).
- Execute `/usr/bin/python setup.py install` to install the packages required to run Auto-SeltControl.
- Execute `sudo /usr/bin/python auto-selfcontrol.py` to install Auto-SelfControl with the block-schedule defined in [config.json](config.json). __Important:__ If you change [config.json](config.json) later, you have to call the installation command again or Auto-SelfControl might not start at the right time!


Expand Down
2 changes: 1 addition & 1 deletion auto-selfcontrol.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7

import subprocess
import os
Expand Down
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python2.7

from setuptools import setup

setup(
name='auto-selfcontrol',
version='1.0',
description='Small utility to schedule start and stop times of SelfControl',
url='github.com/andreasgrill/auto-selfcontrol',
long_description=open('README.md').read(),
install_requires=["pyobjc", "pyobjc-core"]
)

0 comments on commit d5fbb49

Please sign in to comment.