Commit cf10493f authored by Guillaume Ayoub's avatar Guillaume Ayoub

Revert the build_script in setup.

parent 054950be
......@@ -36,11 +36,24 @@ For further information, please visit the `Radicale Website
import os
from distutils.core import setup
from distutils.command.build_scripts import build_scripts
import radicale
class BuildScripts(build_scripts):
"""Build the package."""
def run(self):
"""Run building."""
# These lines remove the .py extension from the radicale executable
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
# ``download_url`` must be uncommented. A new section in the ``NEWS`` file
# must be added too.
......@@ -59,6 +72,7 @@ setup(
packages=["radicale", "radicale.acl"],
cmdclass={"build_scripts": BuildScripts},
keywords=["calendar", "CalDAV"],
"Development Status :: 4 - Beta",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment