Setup fixes, with MANIFEST template
This commit is contained in:
parent
3693bc933d
commit
07ad79ccd6
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include COPYING NEWS TODO
|
10
setup.py
10
setup.py
@ -2,9 +2,7 @@
|
|||||||
# -*- coding: utf-8; indent-tabs-mode: nil; -*-
|
# -*- coding: utf-8; indent-tabs-mode: nil; -*-
|
||||||
#
|
#
|
||||||
# This file is part of Radicale Server - Calendar Server
|
# This file is part of Radicale Server - Calendar Server
|
||||||
# Copyright © 2008-2009 Guillaume Ayoub
|
# Copyright © 2009 Guillaume Ayoub
|
||||||
# Copyright © 2008 Nicolas Kandel
|
|
||||||
# Copyright © 2008 Pascal Halter
|
|
||||||
#
|
#
|
||||||
# This library is free software: you can redistribute it and/or modify
|
# This library is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -29,7 +27,7 @@ class BuildScripts(build_scripts):
|
|||||||
def run(self):
|
def run(self):
|
||||||
self.mkpath(self.build_dir)
|
self.mkpath(self.build_dir)
|
||||||
for script in self.scripts:
|
for script in self.scripts:
|
||||||
root, ext = os.path.splitext(script)
|
root, _ = os.path.splitext(script)
|
||||||
self.copy_file(script, os.path.join(self.build_dir, root))
|
self.copy_file(script, os.path.join(self.build_dir, root))
|
||||||
|
|
||||||
class Clean(Command):
|
class Clean(Command):
|
||||||
@ -57,8 +55,8 @@ class Clean(Command):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _should_remove(filename):
|
def _should_remove(filename):
|
||||||
return (os.path.splitext(filename) == ".pyc" or
|
return (os.path.splitext(filename)[1] == ".pyc" or
|
||||||
os.path.splitext(filename) == ".pyo" or
|
os.path.splitext(filename)[1] == ".pyo" or
|
||||||
filename.endswith("~") or
|
filename.endswith("~") or
|
||||||
(filename.startswith("#") and filename.endswith("#")))
|
(filename.startswith("#") and filename.endswith("#")))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user