# HG changeset patch # User Franz Glasner # Date 1641732022 -3600 # Node ID 233bd8bbda289c110653dcbfba7677087784cb06 # Parent ed131d45631916689e4ec5be47c5a2122b1027e0 Automatically remove ConfigMix.egg-info diff -r ed131d456319 -r 233bd8bbda28 setup.py --- a/setup.py Sun Jan 09 13:34:41 2022 +0100 +++ b/setup.py Sun Jan 09 13:40:22 2022 +0100 @@ -1,9 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function, absolute_import + import re import os import platform +import shutil import sys try: from setuptools import setup @@ -66,10 +69,9 @@ # But our package data differs between "standard" builds and # builds with "--windows-cross-pack". # - if os.path.isdir(PROJECT_NAME + ".egg-info"): - raise RuntimeError( - "please remove %s.egg-info before" % (PROJECT_NAME,)) + print("removing `%s.egg-info'" % (PROJECT_NAME,)) + shutil.rmtree(PROJECT_NAME + ".egg-info") if wcp_idx is None: #