Skip to content

Commit 3e2229a

Browse files
authored
Merge pull request winpython#419 from stonebig/master
package names
2 parents 3152db8 + ee59cd7 commit 3e2229a

File tree

2 files changed

+51
-10
lines changed

2 files changed

+51
-10
lines changed

make.py

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,18 @@ def _create_batch_scripts_initial(self):
551551
pathps = convps(self.prepath) + ";$env:path;" + convps(self.postpath)
552552

553553
self.create_batch_script('env.bat', r"""@echo off
554-
set WINPYDIR=%~dp0.."""+"\\" + self.python_name + r"""
554+
set WINPYDIRBASE=%~dp0..
555+
rem get a normalize path
556+
CALL :NORMALIZEPATH "%WINPYDIRBASE%"
557+
set WINPYDIRBASE=%RETVAL%
558+
set RETVAL=
559+
560+
set WINPYDIR=%WINPYDIRBASE%"""+"\\" + self.python_name + r"""
561+
555562
set WINPYVER=""" + self.winpyver + r"""
556-
set HOME=%~dp0..\settings
563+
set HOME=%WINPYDIRBASE%\settings
564+
set WINPYDIRBASE=
565+
557566
set JUPYTER_DATA_DIR=%HOME%
558567
set WINPYARCH=WIN32
559568
if "%WINPYDIR:~-5%"=="amd64" set WINPYARCH=WIN-AMD64
@@ -598,6 +607,17 @@ def _create_batch_scripts_initial(self):
598607
echo #JUPYTER_DATA_DIR = %%HOME%%>>"%winpython_ini%"
599608
echo #WINPYWORKDIR = %%HOMEDRIVE%%%%HOMEPATH%%\Documents\WinPython%%WINPYVER%%\Notebooks>>"%winpython_ini%"
600609
)
610+
611+
rem *****
612+
rem http://stackoverflow.com/questions/1645843/resolve-absolute-path-from-relative-path-and-or-file-name
613+
rem *****
614+
:: ========== FUNCTIONS ==========
615+
EXIT /B
616+
617+
:NORMALIZEPATH
618+
SET RETVAL=%~dpfn1
619+
EXIT /B
620+
601621
""")
602622

603623
self.create_batch_script('WinPython_PS_Prompt.ps1', r"""
@@ -607,15 +627,21 @@ def _create_batch_scripts_initial(self):
607627
$0 = $myInvocation.MyCommand.Definition
608628
$dp0 = [System.IO.Path]::GetDirectoryName($0)
609629
630+
$env:WINPYDIRBASE = "$dp0\.."
631+
# get a normalize path
632+
# http://stackoverflow.com/questions/1645843/resolve-absolute-path-from-relative-path-and-or-file-name
633+
$env:WINPYDIRBASE = [System.IO.Path]::GetFullPath( $env:WINPYDIRBASE )
634+
610635
# avoid double_init (will only resize screen)
611-
if (-not $env:WINPYDIR -eq "$dp0\..\python-3.4.4.amd64") {
636+
if (-not $env:WINPYDIR -eq [System.IO.Path]::GetFullPath( $env:WINPYDIRBASE+"""+'"\\' + self.python_name + '"' + r""") ) {
637+
638+
639+
$env:WINPYDIR = $env:WINPYDIRBASE+"""+ '"' + '\\' + self.python_name + '"' + r"""
612640
613-
# $env:WINPYDIR = '$pwd\..\python-3.4.4.amd64'
614-
$env:WINPYDIR = "$dp0\..\python-3.4.4.amd64"
615641
616-
$env:WINPYDIR = "$dp0\.."""+'\\' + self.python_name + '"' + r"""
617642
$env:WINPYVER = '""" + self.winpyver + r"""'
618-
$env:HOME = "$env:WINPYDIR\..\settings"
643+
$env:HOME = "$env:WINPYDIRBASE\settings"
644+
$env:WINPYDIRBASE = ""
619645
$env:JUPYTER_DATA_DIR = "$env:HOME"
620646
$env:WINPYARCH = 'WIN32'
621647
if ($env:WINPYARCH.subString($env:WINPYARCH.length-5, 5) -eq 'amd64') {

winpython/data/packages.ini

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ description=Taylor Arithmetic Computation and Algorithmic Differentiation
1616
[altair]
1717
description=High-level declarative visualization library for Python
1818

19+
[amqp]
20+
description=Low-level AMQP client for Python (fork of amqplib).
21+
22+
[anyjson]
23+
description=Wraps the best available JSON implementation available in a common interface
24+
1925
[appdirs]
2026
description=A small Python module for determining appropriate " + "platform-specific dirs, e.g. a "user data dir".
2127

@@ -52,6 +58,9 @@ description=columnar and compressed data containers.
5258
[beautifulsoup4]
5359
description=Screen-scraping library
5460

61+
[billiard]
62+
description=Python multiprocessing fork with improvements and bugfixes
63+
5564
[bitarray]
5665
description=efficient arrays of booleans -- C extension
5766

@@ -97,6 +106,9 @@ description=Universal encoding detector. This library is faster than chardet.
97106
[cssselect]
98107
description=cssselect parses CSS3 Selectors and translates them to XPath 1.0
99108

109+
[celery]
110+
description=Distributed Task Queue.
111+
100112
[certifi]
101113
description=Python package for providing Mozilla's CA Bundle.
102114
@@ -412,6 +424,9 @@ description=A software library for rapid development of hardware-accelerated mul
412424
[knit]
413425
description=Python tool for defining and deploying YARN Applications
414426

427+
[kombu]
428+
description=Messaging library for Python.
429+
415430
[lasagne]
416431
description=neural network tools for Theano
417432

@@ -767,9 +782,6 @@ description=Pygame gives multimedia to python.
767782
[pygit2]
768783
description=Python bindings for libgit2.
769784
770-
[pyomo]
771-
description=Pyomo: Python Optimization Modeling Objects
772-
773785
[pygments]
774786
description=Generic syntax highlighter for general use in all kinds of software
775787
url=http://pygments.org
@@ -808,6 +820,9 @@ description=Python driver for MongoDB <http://www.mongodb.org>
808820
[pyodbc]
809821
description=DB API Module for ODBC
810822
823+
[pyomo]
824+
description=Pyomo: Python Optimization Modeling Objects
825+
811826
[pyopencl]
812827
description=Python wrapper for OpenCL
813828

0 commit comments

Comments
 (0)