Skip to main content

An attempt at a post-install script.

Project description

# python-brlcad: Open-source solid modeling in python.

The python-brlcad module provides a way to use [brlcad](http://brlcad.org/) from inside python based on ctypes bindings. These ctypes bindings are generated during install-time using [ctypesgen](https://github.com/kanzure/ctypesgen).

## installing

` pip install -U brlcad `

or

` git clone git@github.com:kanzure/python-brlcad.git cd python-brlcad/ python setup.py install `

### installing on windows

Use either mingw or cygwin to provide gcc during installation. There is a bug in pip that causes a WindowsError to occur when installing this package, see [the bug report](https://github.com/pypa/pip/pull/1263) for more details.

#### mingw

Install a Windows build of gcc (probably by installing mingw and adding C:MingWbin to the PATH environment variable) and then run:

` C:\Python27\Scripts\pip.exe install --upgrade brlcad `

TODO: there may be a way to run this installation process while under msys without updating the system PATH.

#### cygwin

Another option is to install cygwin and use cygwin gcc. However, it is important to clarify that there is no cygwin brlcad build. Using cygwin gcc is just a cheap shortcut for the Windows python installation process of python-brlcad. Mainly this trick is useful for Windows users that already have cygwin gcc.

To use cygwin gcc, start the python-brlcad install process in cygwin bash:

` /cygdrive/c/Python27/Scripts/pip.exe install --upgrade brlcad `

During the installation, ctypesgen will make use of cygwin gcc because of the cygwin $PATH environment variable.

There is no brlcad build that targets cygwin.

## testing

` nosetests `

## usage

Sorry, not yet. Check the examples/ folder.

# Known to work with..

Operating systems known to work:

  • linux distros

  • windows

Support for Mac OS X is planned but not yet implemented or tested.

## license

BSD.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brlcad-0.0.1.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file brlcad-0.0.1.tar.gz.

File metadata

  • Download URL: brlcad-0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for brlcad-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9b537fe495cf0da20ebc8b650e666b89a0dcd0f23b579033caacb2ade6a06fcf
MD5 2621e3247be6fb75c525a7eb3b63a090
BLAKE2b-256 c2d8f879180d86f78fc5eb1152a59a02d20f2573c9e68e067e2b7dd891a543ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page