Skip to content

Commit

Permalink
Merge pull request #1947 from rtfd/conda-env-create
Browse files Browse the repository at this point in the history
Use environment file for initial conda env creation.
  • Loading branch information
ericholscher committed Jan 22, 2016
2 parents 9daf626 + 0100b12 commit 389d213
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions readthedocs/doc_builder/python_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def install_core_requirements(self):
'sphinx==1.3.4',
'Pygments==2.0.2',
'setuptools==18.6.1',
'docutils==0.11',
'docutils==0.12',
'mkdocs==0.14.0',
'mock==1.0.1',
'pillow==2.6.1',
Expand Down Expand Up @@ -174,22 +174,22 @@ def setup_base(self):
shutil.rmtree(version_path)
self.build_env.run(
'conda',
'env',
'create',
'--yes',
'--name',
self.version.slug,
'python={python_version}'.format(python_version=self.config.python_version),
'--file',
self.config.conda_file,
bin_path=None, # Don't use conda bin that doesn't exist yet
)

def install_core_requirements(self):
conda_env_path = os.path.join(self.project.doc_path, 'conda')

# Use conda for requirements it packages
requirements = [
'sphinx==1.3.4',
'Pygments==2.0.2',
'docutils==0.11',
'docutils==0.12',
'mock==1.0.1',
'pillow==3.0.0',
'sphinx_rtd_theme==0.1.7',
Expand Down Expand Up @@ -231,7 +231,6 @@ def install_core_requirements(self):
)

def install_user_requirements(self):
conda_env_path = os.path.join(self.project.doc_path, 'conda')
self.build_env.run(
'conda',
'env',
Expand Down

0 comments on commit 389d213

Please sign in to comment.