Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a setup.py script for installation
Let a user install pymodoro if they like with: python setup.py install
- Loading branch information
1 parent
3df6f39
commit d31a0c4
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import glob | ||
from setuptools import setup | ||
|
||
datadir = 'data' | ||
datafiles = [(datadir, [f for f in glob.glob(os.path.join(datadir, '*'))])] | ||
|
||
setup( | ||
name='pymodoro', | ||
version='0.1', | ||
py_modules=['pymodoro'], | ||
data_files=datafiles, | ||
entry_points={"console_scripts": ["pymodoro = pymodoro:main"]}, | ||
) |