Build fixes.
This commit is contained in:
parent
aebfed27d9
commit
331cf8344d
6
Makefile
6
Makefile
|
@ -129,7 +129,7 @@ doc/$(LAPPNAME).txt: doc/$(LAPPNAME).1
|
||||||
|
|
||||||
deb:
|
deb:
|
||||||
# build a debian package
|
# build a debian package
|
||||||
[ -f $(DEBORIGFILE) ] || cp dist/$(ARCHIVE_SOURCE) $(DEBORIGFILE) $(DEBUILDDIR)/$(APPNAME)_$(VERSION).orig.tar.gz
|
[ -f $(DEBORIGFILE) ] || cp dist/$(ARCHIVE_SOURCE) $(DEBORIGFILE) $(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz
|
||||||
sed -i 's/VERSION:=.*/VERSION:=$(VERSION)/' $(DEBUILDDIR)/$(LAPPNAME).mak
|
sed -i 's/VERSION:=.*/VERSION:=$(VERSION)/' $(DEBUILDDIR)/$(LAPPNAME).mak
|
||||||
[ -d $(DEBPACKAGEDIR) ] || (cd $(DEBUILDDIR); \
|
[ -d $(DEBPACKAGEDIR) ] || (cd $(DEBUILDDIR); \
|
||||||
patool extract $(DEBORIGFILE); \
|
patool extract $(DEBORIGFILE); \
|
||||||
|
@ -137,8 +137,8 @@ deb:
|
||||||
git checkout debian; \
|
git checkout debian; \
|
||||||
cp -r debian $(DEBPACKAGEDIR); \
|
cp -r debian $(DEBPACKAGEDIR); \
|
||||||
git checkout master)
|
git checkout master)
|
||||||
rm -f $(DEBUILDDIR)/$(PACKAGE)
|
rm -f $(DEBUILDDIR)/$(LAPPNAME)
|
||||||
$(MAKE) -C $(DEBUILDDIR) $(PACKAGE)
|
$(MAKE) -C $(DEBUILDDIR) $(LAPPNAME)
|
||||||
|
|
||||||
update-copyright:
|
update-copyright:
|
||||||
# update-copyright is a local tool which updates the copyright year for each
|
# update-copyright is a local tool which updates the copyright year for each
|
||||||
|
|
12
setup.py
12
setup.py
|
@ -29,6 +29,7 @@ try:
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from distutils.command.register import register
|
||||||
try:
|
try:
|
||||||
# py2exe monkey-patches the distutils.core.Distribution class
|
# py2exe monkey-patches the distutils.core.Distribution class
|
||||||
# So we need to import it before importing the Distribution class
|
# So we need to import it before importing the Distribution class
|
||||||
|
@ -240,6 +241,16 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MyRegister (register, object):
|
||||||
|
"""Custom register command."""
|
||||||
|
|
||||||
|
def build_post_data(self, action):
|
||||||
|
"""Force application name to lower case."""
|
||||||
|
data = super(MyRegister, self).build_post_data(action)
|
||||||
|
data['name'] = data['name'].lower()
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
args = dict(
|
args = dict(
|
||||||
name = AppName,
|
name = AppName,
|
||||||
version = AppVersion,
|
version = AppVersion,
|
||||||
|
@ -287,6 +298,7 @@ installed.
|
||||||
distclass = MyDistribution,
|
distclass = MyDistribution,
|
||||||
cmdclass = {
|
cmdclass = {
|
||||||
'py2exe': MyPy2exe,
|
'py2exe': MyPy2exe,
|
||||||
|
'register': MyRegister,
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
"py2exe": py2exe_options,
|
"py2exe": py2exe_options,
|
||||||
|
|
Loading…
Reference in New Issue