Skip to content

Commit

Permalink
Fix cms.mo files not found when using virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
wil93 authored and stefano-maggiolo committed Aug 5, 2015
1 parent 6566be4 commit 518bcc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
from setuptools import setup, find_packages


# Retrieve all cms.mo files
DATA_FILES = [(root, [os.path.join(root, files[0])])
for root, subdirs, files in os.walk("mo")
if subdirs == []]

PACKAGE_DATA = {
"cms.server": [
os.path.join("static", "*.*"),
Expand Down Expand Up @@ -83,6 +88,7 @@
"for IOI-like programming competitions",
packages=find_packages(),
package_data=PACKAGE_DATA,
data_files=DATA_FILES,
scripts=["scripts/cmsLogService",
"scripts/cmsScoringService",
"scripts/cmsEvaluationService",
Expand Down

0 comments on commit 518bcc4

Please sign in to comment.