Install all necessary deps on readthedocs
Fixes problems where inline method docs did not appear because relevant modules failed to import due to missing dependencies.
This commit is contained in:
parent
87a238e68d
commit
c48654e1ff
@ -16,7 +16,10 @@ import sys, os
|
|||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.insert(0, os.path.abspath('../src')) # Folder containing mceditlib and mcedit2
|
|
||||||
|
# Expects mcedit2 to be installed via `setup.py install`, so `./src` is not
|
||||||
|
# added to sys.path.
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('extensions')) # extensions
|
sys.path.insert(0, os.path.abspath('extensions')) # extensions
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
16
environment.yml
Normal file
16
environment.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: mcedit2-docs
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- python=2.7
|
||||||
|
- pyzmq
|
||||||
|
- pyside
|
||||||
|
- pyopengl
|
||||||
|
- ipython
|
||||||
|
- qtconsole
|
||||||
|
- pygments
|
||||||
|
- cython
|
||||||
|
- numpy
|
||||||
|
- pip:
|
||||||
|
- pastebin
|
||||||
|
- arrow
|
||||||
|
- git+https://github.com/mcedit/pysideuic-pkg
|
5
readthedocs.yml
Normal file
5
readthedocs.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
conda:
|
||||||
|
file: environment.yml
|
||||||
|
|
||||||
|
python:
|
||||||
|
setup_py_install: true
|
@ -1,8 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
setup-mcedit2
|
setup-mcedit2
|
||||||
"""
|
"""
|
||||||
|
from os import path
|
||||||
|
|
||||||
from setuptools import setup
|
import sys
|
||||||
|
from setuptools import setup, find_packages
|
||||||
from Cython.Build import cythonize
|
from Cython.Build import cythonize
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
@ -30,6 +32,10 @@ mcedit2_ext_modules = cythonize(
|
|||||||
for m in mcedit2_ext_modules:
|
for m in mcedit2_ext_modules:
|
||||||
m.include_dirs = include_dirs
|
m.include_dirs = include_dirs
|
||||||
|
|
||||||
|
sys.path.append(path.join(path.dirname(__file__), "src"))
|
||||||
|
from mcedit2.util.gen_ui import compile_ui
|
||||||
|
compile_ui()
|
||||||
|
|
||||||
setup(name='mcedit2',
|
setup(name='mcedit2',
|
||||||
version=version,
|
version=version,
|
||||||
description="Interactive 3D World Editor for Minecraft Levels",
|
description="Interactive 3D World Editor for Minecraft Levels",
|
||||||
@ -51,7 +57,7 @@ setup(name='mcedit2',
|
|||||||
author_email='codewarrior0@gmail.com',
|
author_email='codewarrior0@gmail.com',
|
||||||
url='https://github.com/mcedit/mcedit2',
|
url='https://github.com/mcedit/mcedit2',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
packages=["mcedit2"],
|
packages=find_packages('src', include="mcedit2*"),
|
||||||
package_dir={'': 'src'},
|
package_dir={'': 'src'},
|
||||||
ext_modules=mcedit2_ext_modules,
|
ext_modules=mcedit2_ext_modules,
|
||||||
include_dirs=include_dirs,
|
include_dirs=include_dirs,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
setup_mceditlib
|
setup_mceditlib
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
from Cython.Build import cythonize
|
from Cython.Build import cythonize
|
||||||
|
|
||||||
# Output annotated .html
|
# Output annotated .html
|
||||||
@ -47,7 +47,7 @@ setup(name='mceditlib',
|
|||||||
author_email='codewarrior0@gmail.com',
|
author_email='codewarrior0@gmail.com',
|
||||||
url='https://github.com/mcedit/mcedit2',
|
url='https://github.com/mcedit/mcedit2',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
packages=["mceditlib"],
|
packages=find_packages('src', include="mceditlib*"),
|
||||||
package_dir={'': 'src'},
|
package_dir={'': 'src'},
|
||||||
ext_modules=mceditlib_ext_modules,
|
ext_modules=mceditlib_ext_modules,
|
||||||
include_dirs=include_dirs,
|
include_dirs=include_dirs,
|
||||||
|
Reference in New Issue
Block a user