1- import setuptools , os , sys , platform , distutils .dir_util
1+ import setuptools , os , sys , json , platform , shutil , distutils .dir_util
22from pathlib import Path
3+ from setuptools .command .install import install
4+ from setuptools .command .develop import develop
35
46pkgname = "delphifmx"
57
@@ -55,26 +57,15 @@ def get_release_version():
5557 else :
5658 raise ValueError ("Unsupported platform." )
5759
58- #Copy the doc files to the package folder into the doc subfolder
59- if os .path .exists (os .path .join ("docs" , "xml" , "docs.xml" )):
60- pkg_doc_dir = os .path .join (pkg_dir , "doc" )
61- if not os .path .exists (pkg_doc_dir ):
62- os .mkdir (pkg_doc_dir )
63- distutils .file_util .copy_file (os .path .join ("docs" , "xml" , "docs.xml" ), os .path .join (pkg_doc_dir , "docs.xml" ))
64-
6560#Create the package data.
6661pkgdata = []
6762for dir_ , _ , files in os .walk (pkg_dir ):
6863 for file_name in files :
6964 rel_dir = os .path .relpath (dir_ , pkg_dir )
70- rel_file = os .path .join (rel_dir , file_name )
71- #Add the shared library.
65+ rel_file = os .path .join (rel_dir , file_name )
7266 if '' .join (Path (rel_file ).suffixes ) in ['.pyd' , '.tds' , '.so' , '.dylib' , '.dylib.dSYM' ]:
7367 pkgdata .append (rel_file )
74- #Add the doc xml file
75- elif (rel_file .endswith ('.xml' )):
76- pkgdata .append (rel_file )
77-
68+ print (pkgdata )
7869#Read the current version from __version.py__
7970versnewstr = get_release_version ()
8071
@@ -92,7 +83,7 @@ def get_release_version():
9283 license = "Other/Proprietary License" ,
9384 license_files = ["LICENSE.md" ],
9485 url = "https://github.com/Embarcadero/DelphiFMX4Python" ,
95- python_requires = ">=3.3" ,
86+ python_requires = ">=3.3<=3.10 " ,
9687 packages = [pkgname ],
9788 package_data = {pkgname : pkgdata },
9889 classifiers = [
@@ -106,7 +97,6 @@ def get_release_version():
10697 'Programming Language :: Python :: 3.8' ,
10798 'Programming Language :: Python :: 3.9' ,
10899 'Programming Language :: Python :: 3.10' ,
109- 'Programming Language :: Python :: 3.11' ,
110100 'Programming Language :: Python :: 3 :: Only' ,
111101 'Operating System :: Microsoft :: Windows' ,
112102 'Operating System :: POSIX' ,
@@ -117,4 +107,4 @@ def get_release_version():
117107 cmdclass = {
118108 'bdist_wheel' : bdist_wheel
119109 }
120- )
110+ )
0 commit comments