More windows fixes.
This commit is contained in:
parent
3c1ada6fa6
commit
1db131901f
1 changed files with 7 additions and 2 deletions
9
setup.py
9
setup.py
|
|
@ -28,7 +28,7 @@ def get_scripts():
|
||||||
"""
|
"""
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
batpath = os.path.join("bin", "windows", "evennia.bat")
|
batpath = os.path.join("bin", "windows", "evennia.bat")
|
||||||
scriptpath = os.path.join(sys.prefix, "bin", "windows", "evennia.py")
|
scriptpath = os.path.join(sys.prefix, "Lib", "site-packages", "evennia", "server", "evennia_launcher.py")
|
||||||
with open(batpath, "w") as batfile:
|
with open(batpath, "w") as batfile:
|
||||||
batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath))
|
batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath))
|
||||||
return [batpath]
|
return [batpath]
|
||||||
|
|
@ -54,15 +54,20 @@ def package_data():
|
||||||
for root, dirs, files in os.walk('evennia'):
|
for root, dirs, files in os.walk('evennia'):
|
||||||
for f in files:
|
for f in files:
|
||||||
if '.git' in f.split(os.path.normpath(os.path.join(root, f))):
|
if '.git' in f.split(os.path.normpath(os.path.join(root, f))):
|
||||||
# Prevent the repo from bing added.
|
# Prevent the repo from being added.
|
||||||
continue
|
continue
|
||||||
file_name = os.path.relpath(os.path.join(root, f), 'evennia')
|
file_name = os.path.relpath(os.path.join(root, f), 'evennia')
|
||||||
file_set.append(file_name)
|
file_set.append(file_name)
|
||||||
return file_set
|
return file_set
|
||||||
|
|
||||||
|
# setup the package
|
||||||
setup(
|
setup(
|
||||||
name='evennia',
|
name='evennia',
|
||||||
version=get_version(),
|
version=get_version(),
|
||||||
|
author = "Evennia community",
|
||||||
|
maintainer = "Griatch",
|
||||||
|
maintainer_email = "griatch AT gmail DOT com",
|
||||||
|
url = "http://www.evennia.com",
|
||||||
description='A full-featured MUD building toolkit.',
|
description='A full-featured MUD building toolkit.',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
scripts=get_scripts(),
|
scripts=get_scripts(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue