Saba Kauser <skau...@rocketsoftware.com> writes:
> ...
> My package (ibm_db) has LICENSE, README.md and CHANGES files that I want to 
> be available in the same location as my package is installed I.e under 
> site-packages. However, with current setup.py 
> https://github.com/ibmdb/python-ibmdb/blob/master/IBM_DB/ibm_db/setup.py, 
> these files get installed under python install path.
> e.g: C:\Users\skauser\AppData\Local\Programs\Python\Python36\LICENSE
>
> I have specified them as:
> data_files = [ ('', ['./README.md']),
>                ('', ['./CHANGES']),
>                ('', ['./LICENSE']) ]
>
> Setup(
> ..
> package_data = package_data,
>        data_files   = data_files,
>        include_package_data = True,
>       cmdclass = cmd_class,
> ..)
>
> Since the directory path is empty, these files get copied under current path 
> of execution. However, I want them to be copied under the install location of 
> my package.
> Is there any other way I can achieve this?

As you do not want to follow my example, maybe read the
"setuptools" documentation.

There definitely is a way to achieve your goal -- other than
my approach. If necessary override parts of the "distutils/setuptools"
machinery.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to