From 96d673d7509530ebc2a2c194e41c95534b0918d7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 22 Jun 2022 16:31:56 +0800 Subject: [PATCH] bugfix --- ahserver/version.py | 1 + setup.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 ahserver/version.py diff --git a/ahserver/version.py b/ahserver/version.py new file mode 100644 index 0000000..c5b683c --- /dev/null +++ b/ahserver/version.py @@ -0,0 +1 @@ +__version__ = '0.2.11' diff --git a/setup.py b/setup.py index 2c3b1be..c2c4284 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,18 @@ # -*- coding: utf-8 -*- from distutils.core import setup -from setuptools import setup, find_packages +try: + from setuptools import setup, find_packages +except: + from distutils.core import setup +from ahserver.version import __version__ # usage: # python setup.py bdist_wininst generate a window executable file # python setup.py bdist_egg generate a egg file # Release information about eway -version = "0.0.2" +version = __version__ name = "ahserver" description = "ahserver" author = "yumoqing"