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

Skip to content

Commit 1825371

Browse files
committed
Use resources file in setup.py.
1 parent 7ff6a6e commit 1825371

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from setuptools import setup, find_packages
33

44
exec (open('plotly/version.py').read())
5+
exec (open('plotly/resources.py').read())
56

67

78
def readme():
@@ -33,6 +34,8 @@ def readme():
3334
],
3435
license='MIT',
3536
packages=find_packages(),
37+
data_files=[(GRAPH_REFERENCE_DIR, GRAPH_REFERENCE_FILES),
38+
(WIDGETS_DIR, WIDGETS_FILES)],
3639
package_data={'plotly': ['graph_reference/*.json', 'widgets/*.js']},
3740
install_requires=['requests', 'six', 'pytz'],
3841
extras_require={"PY2.6": ['simplejson', 'ordereddict',

0 commit comments

Comments
 (0)