11Installation and Testing
22^^^^^^^^^^^^^^^^^^^^^^^^
33
4- **Installation via pip or conda is the recommended method for all users. **
4+ **Installation via pip is the recommended method for all users. **
55Manual method is only recommended for advanced users. Please note that if you have used any of these methods to install
66NURBS-Python, please use the same method to upgrade to the latest version.
77
@@ -34,27 +34,6 @@ Installing a specific version:
3434
3535 $ pip install --user geomdl==5.0.0
3636
37- Install via Conda
38- =================
39-
40- NURBS-Python can also be installed/upgraded via `conda <https://conda.io/ >`_ package manager from the
41- `Anaconda Cloud <https://anaconda.org/orbingol/geomdl >`_ repository.
42-
43- Installing:
44-
45- .. code-block :: console
46-
47- $ conda install -c orbingol geomdl
48-
49- Upgrading to the latest version:
50-
51- .. code-block :: console
52-
53- $ conda upgrade -c orbingol geomdl
54-
55- If you are experiencing problems with this method, you can try to upgrade ``conda `` package itself before
56- installing the NURBS-Python library.
57-
5837 Manual Install
5938==============
6039
@@ -123,24 +102,7 @@ following command along with the pure Python version.
123102
124103.. code-block :: console
125104
126- $ pip install --user . --install-option="--use-cython"
127-
128- This command will generate .c files (i.e. cythonization) and compile the .c files into binary Python modules.
129-
130- The following command can be used to directly compile and install from the existing .c files, skipping the cythonization
131- step:
132-
133- .. code-block :: console
134-
135- $ pip install --user . --install-option="--use-source"
136-
137- To update the compiled module with the latest changes, you need to re-cythonize the code.
138-
139- To enable Cython-compiled module in development mode;
140-
141- .. code-block :: console
142-
143- $ python setup.py build_ext --use-cython --inplace
105+ $ SETUPTOOLS_USE_CYTHON=1 pip install --user .
144106
145107 After the successful execution of the command, the you can import and use the compiled library as follows:
146108
@@ -166,33 +128,4 @@ After the successful execution of the command, the you can import and use the co
166128 crv.vis = vis.VisCurve3D()
167129 crv.render()
168130
169- Before Cython compilation, please make sure that you have `Cython <https://cython.org/ >`_ module and a valid compiler
170- installed for your operating system.
171-
172- Docker Containers
173- =================
174-
175- A collection of Docker containers is provided on `Docker Hub <https://hub.docker.com/r/idealabisu/nurbs-python/ >`_
176- containing NURBS-Python, Cython-compiled core and the `command-line application <https://geomdl-cli.readthedocs.io >`_.
177- To get started, first install `Docker <https://www.docker.com/ >`_ and then run the following on the Docker command
178- prompt to pull the image prepared with Python v3.5:
179-
180- .. code-block :: console
181-
182- $ docker pull idealabisu/nurbs-python:py35
183-
184- On the `Docker Repository <https://hub.docker.com/r/idealabisu/nurbs-python/ >`_ page, you can find containers tagged for
185- Python versions and `Debian <https://www.debian.org/ >`_ (no suffix) and `Alpine Linux <https://alpinelinux.org/ >`_
186- (``-alpine `` suffix) operating systems. Please change the tag of the pull command above for downloading your preferred
187- image.
188-
189- After pulling your preferred image, run the following command:
190-
191- .. code-block :: console
192-
193- $ docker run --rm -it --name geomdl -p 8000:8000 idealabisu/nurbs-python:py35
194-
195- In all images, Matplotlib is set to use ``webagg `` backend by default. Please follow the instructions on the command
196- line to view your figures.
197-
198- Please refer to the `Docker documentation <https://docs.docker.com/ >`_ for details on using Docker.
131+ Before the Cython compilation, please make sure that you have a valid compiler installed for your operating system.
0 commit comments