Revert the build_script in setup.
This commit is contained in:
parent
054950be54
commit
cf10493fc0
14
setup.py
14
setup.py
@ -36,11 +36,24 @@ For further information, please visit the `Radicale Website
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from distutils.command.build_scripts import build_scripts
|
||||||
|
|
||||||
import radicale
|
import radicale
|
||||||
|
|
||||||
|
|
||||||
|
class BuildScripts(build_scripts):
|
||||||
|
"""Build the package."""
|
||||||
|
def run(self):
|
||||||
|
"""Run building."""
|
||||||
|
# These lines remove the .py extension from the radicale executable
|
||||||
|
self.mkpath(self.build_dir)
|
||||||
|
for script in self.scripts:
|
||||||
|
root, _ = os.path.splitext(script)
|
||||||
|
self.copy_file(script, os.path.join(self.build_dir, root))
|
||||||
|
|
||||||
|
|
||||||
# When the version is updated, ``radicale.VERSION`` must be modified and
|
# When the version is updated, ``radicale.VERSION`` must be modified and
|
||||||
# ``download_url`` must be uncommented. A new section in the ``NEWS`` file
|
# ``download_url`` must be uncommented. A new section in the ``NEWS`` file
|
||||||
# must be added too.
|
# must be added too.
|
||||||
@ -59,6 +72,7 @@ setup(
|
|||||||
packages=["radicale", "radicale.acl"],
|
packages=["radicale", "radicale.acl"],
|
||||||
provides=["radicale"],
|
provides=["radicale"],
|
||||||
scripts=["radicale.py"],
|
scripts=["radicale.py"],
|
||||||
|
cmdclass={"build_scripts": BuildScripts},
|
||||||
keywords=["calendar", "CalDAV"],
|
keywords=["calendar", "CalDAV"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
|
Loading…
Reference in New Issue
Block a user