Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be556d5

Browse files
author
Troy Melhase
committed
Adds doc files to setup.py.
1 parent 7befea3 commit be556d5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313
from distutils.core import setup
14+
from os import path, listdir
1415

1516

1617
classifiers = """
@@ -31,6 +32,10 @@
3132
long_description = '\n'.join(__doc__.split('\n')[4:])
3233

3334

35+
def doc_files():
36+
return [path.join('doc', name) for name in listdir('doc')]
37+
38+
3439
setup(
3540
name='java2python',
3641
version='0.5.0',
@@ -71,6 +76,10 @@
7176
'bin/j2py',
7277
],
7378

79+
data_files=[
80+
('doc', doc_files()),
81+
],
82+
7483
install_requires=['antlr_python_runtime==3.1.3'],
7584

7685
)

0 commit comments

Comments
 (0)