mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Use pluginbuilder instead of py2app.
This commit is contained in:
parent
69498147a2
commit
92e0647f19
16
README
16
README
@ -1,5 +1,5 @@
|
|||||||
Contents
|
Contents
|
||||||
=====
|
========
|
||||||
|
|
||||||
This package contains the source for dupeGuru. To learn how to build it, refer to the "Build dupeGuru" section. Below is the description of the various subfolders:
|
This package contains the source for dupeGuru. To learn how to build it, refer to the "Build dupeGuru" section. Below is the description of the various subfolders:
|
||||||
|
|
||||||
@ -19,14 +19,14 @@ with as mercurial subrepos):
|
|||||||
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.
|
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.
|
||||||
|
|
||||||
dupeGuru Dependencies
|
dupeGuru Dependencies
|
||||||
=====
|
=====================
|
||||||
|
|
||||||
Before being able to build dupeGuru, a few dependencies have to be installed:
|
Before being able to build dupeGuru, a few dependencies have to be installed:
|
||||||
|
|
||||||
General dependencies
|
General dependencies
|
||||||
-----
|
--------------------
|
||||||
|
|
||||||
- Python 3.1 (http://www.python.org)
|
- Python 3.1 (3.2 on Mac OS X) (http://www.python.org)
|
||||||
- Send2Trash3k (http://hg.hardcoded.net/send2trash)
|
- Send2Trash3k (http://hg.hardcoded.net/send2trash)
|
||||||
- hsaudiotag3k 1.1.0 (for ME) (http://hg.hardcoded.net/hsaudiotag)
|
- hsaudiotag3k 1.1.0 (for ME) (http://hg.hardcoded.net/hsaudiotag)
|
||||||
- jobprogress (http://hg.hardcoded.net/jobprogress)
|
- jobprogress (http://hg.hardcoded.net/jobprogress)
|
||||||
@ -38,16 +38,16 @@ by the build system through command line, so you can build dupeGuru even if Sphi
|
|||||||
your Python 2.x install.
|
your Python 2.x install.
|
||||||
|
|
||||||
OS X prerequisites
|
OS X prerequisites
|
||||||
-----
|
------------------
|
||||||
|
|
||||||
- XCode 3.1 (http://developer.apple.com/TOOLS/xcode/)
|
- XCode 3.1 (http://developer.apple.com/TOOLS/xcode/)
|
||||||
- Sparkle (http://sparkle.andymatuschak.org/)
|
- Sparkle (http://sparkle.andymatuschak.org/)
|
||||||
- PyObjC 2.3 (http://pyobjc.sourceforge.net/)
|
- PyObjC 2.3 (http://pyobjc.sourceforge.net/)
|
||||||
- py2app 0.5.4 (http://bitbucket.org/ronaldoussoren/py2app)
|
- pluginbuilder 1.0.0 (http://bitbucket.org/hsoft/pluginbuilder)
|
||||||
- appscript 0.22.0 for ME and PE (http://appscript.sourceforge.net/)
|
- appscript 0.22.0 for ME and PE (http://appscript.sourceforge.net/)
|
||||||
|
|
||||||
Windows prerequisites
|
Windows prerequisites
|
||||||
---
|
---------------------
|
||||||
|
|
||||||
- Visual Studio 2008 (Express is enough) is needed to build C extensions. (http://www.microsoft.com/Express/)
|
- Visual Studio 2008 (Express is enough) is needed to build C extensions. (http://www.microsoft.com/Express/)
|
||||||
- PyQt 4.7.5 (http://www.riverbankcomputing.co.uk/news)
|
- PyQt 4.7.5 (http://www.riverbankcomputing.co.uk/news)
|
||||||
@ -55,7 +55,7 @@ Windows prerequisites
|
|||||||
- Advanced Installer, if you want to build the installer file. (http://www.advancedinstaller.com/)
|
- Advanced Installer, if you want to build the installer file. (http://www.advancedinstaller.com/)
|
||||||
|
|
||||||
Building dupeGuru
|
Building dupeGuru
|
||||||
=====
|
=================
|
||||||
|
|
||||||
First, make sure you meet the dependencies listed in the section above. Then you need to configure your build with:
|
First, make sure you meet the dependencies listed in the section above. Then you need to configure your build with:
|
||||||
|
|
||||||
|
10
build.py
10
build.py
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Created By: Virgil Dupras
|
# Created By: Virgil Dupras
|
||||||
# Created On: 2009-12-30
|
# Created On: 2009-12-30
|
||||||
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
||||||
@ -15,6 +14,7 @@ import json
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from distutils.extension import Extension
|
from distutils.extension import Extension
|
||||||
|
from pluginbuilder import build_plugin
|
||||||
|
|
||||||
from hscommon import sphinxgen
|
from hscommon import sphinxgen
|
||||||
from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages,
|
from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages,
|
||||||
@ -46,12 +46,8 @@ def build_cocoa(edition, dev):
|
|||||||
cocoa_project_path = 'cocoa/{0}'.format(edition)
|
cocoa_project_path = 'cocoa/{0}'.format(edition)
|
||||||
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
||||||
os.chdir('build')
|
os.chdir('build')
|
||||||
script_args = ['py2app', '-A'] if dev else ['py2app']
|
# We have to exclude PyQt4 specifically because it's conditionally imported in hscommon.trans
|
||||||
setup(
|
build_plugin('dg_cocoa.py', excludes=['PyQt4'], alias=dev)
|
||||||
script_args = script_args,
|
|
||||||
plugin = ['dg_cocoa.py'],
|
|
||||||
setup_requires = ['py2app'],
|
|
||||||
)
|
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
pluginpath = op.join(cocoa_project_path, 'dg_cocoa.plugin')
|
pluginpath = op.join(cocoa_project_path, 'dg_cocoa.plugin')
|
||||||
if op.exists(pluginpath):
|
if op.exists(pluginpath):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user