mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
Don't download the DB if the right version is already there
Former-commit-id: e931062b5a
This commit is contained in:
parent
16bc844841
commit
351378e318
2
setup.py
2
setup.py
@ -84,12 +84,14 @@ class UploadDataCommand(SimpleCommand):
|
|||||||
class CustomInstallCommand(install):
|
class CustomInstallCommand(install):
|
||||||
def run(self):
|
def run(self):
|
||||||
install.run(self)
|
install.run(self)
|
||||||
|
if not os.path.exists(config.DB_FILENAME):
|
||||||
self.run_command('download_db')
|
self.run_command('download_db')
|
||||||
|
|
||||||
|
|
||||||
class CustomDevelopCommand(develop):
|
class CustomDevelopCommand(develop):
|
||||||
def run(self):
|
def run(self):
|
||||||
develop.run(self)
|
develop.run(self)
|
||||||
|
if not os.path.exists(config.DB_FILENAME):
|
||||||
self.run_command('download_db')
|
self.run_command('download_db')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user