Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Packaging with conda

pythonocc depends on one of the largest Open Source code bases out there, OpenCasCADE specifically, the OpenCasCADE Community Edition.

conda is a solution to install pythonOCC and all of its dependencies in about 5 minutes.

How is this done?

First, decide if you prefer the complete anaconda that comes with many great modules readily installed or a lighter handed approach (prefered), by installing miniconda. This is accomplished through the following command on linux:

curl 'http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh' > Miniconda.sh
bash Miniconda.sh

and for mac osx through

curl 'http://repo.continuum.io/miniconda/Miniconda-3.7.0-MacOSX-x86_64.sh' > Miniconda.sh
bash Miniconda.sh

that installs a fresh python interpreter.

As of now, only an osx build is completed, as conda support for pythonocc is a work in progress. You can install pythonocc-core like so:

# add the channel
conda config --add channels http://conda.binstar.org/jf
# create a pythonocc environment
conda create -n pythonocc python
# grab and install pythonocc
conda install pythonocc-core
# You're encouraged to install a GUI manager PyQt4 or wxPython
conda install pyqt

Environments

Environments are a very important concept, and conda provides more fundamental support for environments than for instance virtualenv. This is again, related to dependencies. With conda, mutiple version of pythonocc supporting different version of the OCE library can be supported. By changing your environment, its easy to upgrade your codebase to a newer version of PythonOCC while still being able to switch to any older version.

packages at binstar

binstar is a site where you can upload and distribute your own repository of packages here's Jelle's. Ownership of packages can be shared, which is great for working together on supporting a package for different platforms. Check out available packages by the maintainer of conda and binstar

If your interested to learn more about conda, check out the documentation. You're also encouraged you to see this [excellent talk] (http://youtu.be/UaIvrDWrIWM) by Aaron Meurer.