Skip to content
Snippets Groups Projects
Unverified Commit cca9d3f5 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix the docs

parent c98fed34
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ lib/ ...@@ -18,6 +18,7 @@ lib/
lib64/ lib64/
parts/ parts/
sdist/ sdist/
wheelhouse/
var/ var/
wheels/ wheels/
pip-wheel-metadata/ pip-wheel-metadata/
......
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
pre_create_environment:
- pip install psutil Cython Sphinx
sphinx:
builder: html
configuration: docs/conf.py
# coding: utf-8 # coding: utf-8
[metadata] [metadata]
version = 2.12a1 version = 2.12
name = minijson name = minijson
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8 long_description_content_type = text/markdown; charset=UTF-8
......
import os import os
from Cython.Build import cythonize try:
from Cython.Compiler.Options import get_directive_defaults from Cython.Build import cythonize
from Cython.Compiler.Options import get_directive_defaults
except ImportError:
print('Install Cython in order to build from source')
from setuptools import setup, Extension from setuptools import setup, Extension
directive_defaults = get_directive_defaults() directive_defaults = get_directive_defaults()
...@@ -14,5 +17,5 @@ if 'DEBUG' in os.environ: ...@@ -14,5 +17,5 @@ if 'DEBUG' in os.environ:
directive_defaults['binding'] = True directive_defaults['binding'] = True
macros = [('CYTHON_TRACE', '1')] macros = [('CYTHON_TRACE', '1')]
setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"],
define_macros=macros)])) setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment