Skip to content

Commit

Permalink
Fixed setup.py to use correct file names for addisitonal data files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkawamoto committed Jan 16, 2017
1 parent 0102b33 commit 4f94c21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"""Package information about a synthetic dataset for review graph mining.
"""
import distutils.command.install_data
from os import path
from setuptools import setup
import urllib

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


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

setup(
name="rgmining-tripadvisor-dataset",
version="0.5.0",
version="0.5.1",
author="Junpei Kawamoto",
author_email="kawamoto.junpei@gmail.com",
description="Trip Advisor dataset for Review Graph Mining Project",
Expand Down

0 comments on commit 4f94c21

Please sign in to comment.