-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another sdist issue and bump to 2.0.3
This is really becoming a mess.
- Loading branch information
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,26 +21,27 @@ def read(fname): | |
|
||
|
||
if __name__ == '__main__': | ||
current_dir = os.path.dirname(__file__) | ||
if "sdist" not in sys.argv[1]: | ||
# Set up TkImg library for bdist or install | ||
prefix = sys.platform if sys.platform not in platforms else platforms[sys.platform] | ||
arch = int(architecture()[0][:2]) | ||
tkimg_folder = os.path.join(current_dir, "tkimg", "{}{}".format(prefix, arch)) | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
else: | ||
# Set up TkImg library for sdist | ||
tkimg_folder = os.path.join(current_dir, "tkimg") | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
if os.path.exists(dest_dir): | ||
rmtree(dest_dir) | ||
copytree(tkimg_folder, dest_dir) | ||
if "pip" not in __file__: | ||
current_dir = os.path.dirname(__file__) | ||
if "sdist" not in sys.argv[1]: | ||
# Set up TkImg library for bdist_wheel or bdist_wheel install | ||
prefix = sys.platform if sys.platform not in platforms else platforms[sys.platform] | ||
arch = int(architecture()[0][:2]) | ||
tkimg_folder = os.path.join(current_dir, "tkimg", "{}{}".format(prefix, arch)) | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
else: | ||
# Set up TkImg library for sdist | ||
tkimg_folder = os.path.join(current_dir, "tkimg") | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
if os.path.exists(dest_dir): | ||
rmtree(dest_dir) | ||
copytree(tkimg_folder, dest_dir) | ||
|
||
setup( | ||
name='ttkthemes', | ||
packages=['ttkthemes'], | ||
package_data={"ttkthemes": ["themes/*", "tkimg/*"]}, | ||
version='2.0.2', | ||
version='2.0.3', | ||
description='A group of themes for the ttk extensions of Tkinter with a Tkinter.Tk wrapper', | ||
author='The ttkthemes authors', | ||
author_email='[email protected]', | ||
|