Skip to content

Commit 4f94c21

Browse files
committed
Fixed setup.py to use correct file names for addisitonal data files.
1 parent 0102b33 commit 4f94c21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"""Package information about a synthetic dataset for review graph mining.
2323
"""
2424
import distutils.command.install_data
25+
from os import path
2526
from setuptools import setup
2627
import urllib
2728

@@ -36,7 +37,7 @@ def run(self):
3637
if not isinstance(f, tuple):
3738
continue
3839
for i, u in enumerate(f[1]):
39-
f[1][i] = urllib.urlretrieve(u)[0]
40+
f[1][i] = urllib.urlretrieve(u, path.basename(u))[0]
4041
return distutils.command.install_data.install_data.run(self)
4142

4243

@@ -55,7 +56,7 @@ def _load_requires_from_file(filepath):
5556

5657
setup(
5758
name="rgmining-tripadvisor-dataset",
58-
version="0.5.0",
59+
version="0.5.1",
5960
author="Junpei Kawamoto",
6061
author_email="kawamoto.junpei@gmail.com",
6162
description="Trip Advisor dataset for Review Graph Mining Project",

0 commit comments

Comments
 (0)