Re: polygon dependency

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
My mistake, as I had intended that the recent releases in fact make
Polygon and ttfquery optional (in which case extrusion and text
objects are not available). The mistake is that the start of
vis/shapes.py should look like this:

from math import pi, cos, sin, sqrt, tan, atan, acos
try:
    from Polygon import Polygon
    from Polygon.Shapes import Star
    from ttfquery import describe, glyphquery, glyph
except:
    pass
import vis

import os, sys, glob

(vis/primitives.py already checks for Polygon and ttfquery
availability and issues an appropriate warning.)

The corrected shapes.py is now in CVS.

You've probably seen this, but on the download pages at vpython.org
you'll find this:

In support of the 3D text and extrusion objects, you will need to
install the font-handling modules FontTools, ttfquery (version 1.0.4
or later), and Polygon (all available from pypi.python.org), for which
the following conditions apply: "Polygon is being distributed subject
to the following conditions: This distribution contains code from the
GPC Library, and/or code resulting from the use of the GPC Library.
This usage has been authorized by The University of Manchester, on the
understanding that the GPC-related features are used only in the
context of this distribution. It is not permitted to extract the GPC
code from the distribution as the basis for commercial exploitation,
unless a GPC Commercial Use Licence is obtained from The University of
Manchester, contact: http://www.cs.man.ac.uk/~toby/gpc/".

Bruce Sherwood

On Mon, Mar 21, 2011 at 2:58 PM, Thomas Spura <tomspur-rxtnV0ftBwyoClj4AeEUq9i2O/[email protected]> wrote:
> Hi list,
>
> is it possible to drop the polygon dependency somehow (or at least make
> it optionally).
>
> I just tried to package it for fedora and noticed the dependency to
> gpc, which is non-free:
> https://fedorahosted.org/fpc/ticket/74
>
> When that can't be resolved by polygon upstream (and I bet it can't,
> because they would be forced to rewrite the gpc library somehow),
> vpython will never work on fedora, because polygon can't be imported...
>
> Greetings,
>   Thomas
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.