Hi,

I'm trying to use bdist_mpkg to make installer packages for NodeBox libraries. It's pretty easy for standard configurations, however, I'd like to have an installer that doesn't need to have administrator authorization and that install to a custom location (~/Library/ Application Support/NodeBox).

I found out that make_package accepts an info dict that overrides any settings, but make_scheme_package uses get_scheme_info that just returns an empty tuple.

I also didn't discover how I could change my default ("root"?) scheme. I tried scheme_root, but that doesn't seem to do anything. I also tried custom schemes, but then I still get a default package with egg files that needs admin authorization. Also, the prefix gets a '/' appended to the beginning.

Is there a way to edit the default/root scheme? I included my setup.py file.

Also, I noticed that your bdist_mpkg doesn't work on Python 2.3 because you're using the built-in set type in utils.py; changing it to the Set class makes it compatible again. Could you consider the attached diff for util.py? It would make my distribution problems on a default Mac OS X 10.4 a lot easier.

Kind regards,

Frederik


Attachment: remove-builtin-set.diff
Description: Binary data

#!/usr/bin/env python

import sys, os
from setuptools import setup, find_packages
from pkg_resources import require, DistributionNotFound

import bdist_mpkg.cmd_bdist_mpkg

VERSION = '0.4.5'
DESCRIPTION = "NodeBox library for manipulating bezier paths."
LONG_DESCRIPTION = """The Bezier library (nicknamed PathMatics) provides
powerful mathematical functionality for Bezier paths, from simple things like
evaluating the length of a path to complicated things like inserting points on a
path or constructing a smooth path from a list of on-curve points.

A special thanks goes to professor F. De Smedt at the Free University of 
Brussels for his integration and interpolation algorithms."""

CUSTOM_SCHEMES = dict(
    bezier=dict(
        description=u'Bezier Library',
        prefix='~/Library/Application Support/NodeBox',
        source='bezier',
    ),
)

ROOT_SCHEME = dict(
        description=u'Bezier Library',
        prefix='~/Library/Application Support/NodeBox',
        source='bezier',
)

setup(
    name="bezier",
    version=VERSION,
    description=DESCRIPTION,
    license = 'MIT',
    long_description=LONG_DESCRIPTION,
    author="Tom De Smedt",
    author_email="[EMAIL PROTECTED]",
    platforms=['MacOS X'],
    packages=['bezier'],
    options=dict(bdist_mpkg=dict(scheme_root=ROOT_SCHEME)),
)

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to